Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions sentry_sdk/integrations/strawberry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
Loading