diff --git a/sentry_sdk/integrations/strawberry.py b/sentry_sdk/integrations/strawberry.py index d3cb77cc4f..8797bfc623 100644 --- a/sentry_sdk/integrations/strawberry.py +++ b/sentry_sdk/integrations/strawberry.py @@ -19,15 +19,6 @@ package_version, ) -try: - from functools import cached_property -except ImportError: - # The strawberry integration requires Python 3.8+. functools.cached_property - # was added in 3.8, so this check is technically not needed, but since this - # is an auto-enabling integration, we might get to executing this import in - # lower Python versions, so we need to deal with it. - raise DidNotEnable("strawberry-graphql integration requires Python 3.8 or newer") - try: from strawberry import Schema from strawberry.extensions import SchemaExtension @@ -142,7 +133,7 @@ def __init__( if execution_context: self.execution_context = execution_context - @cached_property + @functools.cached_property def _resource_name(self) -> str: query_hash = self.hash_query(self.execution_context.query) # type: ignore