Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Jan 9, 2025
1 parent f4fa720 commit 52211a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def setup_integrations(


def _check_minimum_version(integration, version, package=None):
# type: (Integration, Optional[tuple[int]], Optional[str]) -> None
# type: (type[Integration], Optional[tuple[int, ...]], Optional[str]) -> None
package = package or integration.identifier

if version is None:
Expand Down
3 changes: 1 addition & 2 deletions sentry_sdk/integrations/sanic.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ def __init__(self, unsampled_statuses=frozenset({404})):
@staticmethod
def setup_once():
# type: () -> None

SanicIntegration.version = parse_version(SANIC_VERSION)
_check_minimum_version(SanicIntegration.identifier, SanicIntegration.version)
_check_minimum_version(SanicIntegration, SanicIntegration.version)

if not HAS_REAL_CONTEXTVARS:
# We better have contextvars or we're going to leak state between
Expand Down

0 comments on commit 52211a3

Please sign in to comment.