From 89120dbd21ba9555ee09e8c4aba721f95497bc56 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Thu, 6 Aug 2026 10:24:32 +0200 Subject: [PATCH] chore(strawberry): Remove guard --- sentry_sdk/integrations/strawberry.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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