We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5682e0 commit 0b9b024Copy full SHA for 0b9b024
fastapi_jsonrpc/contrib/sentry/integration.py
@@ -1,3 +1,4 @@
1
+from typing import Optional
2
from fastapi_jsonrpc import MethodRoute, EntrypointRoute
3
from sentry_sdk.integrations import Integration
4
@@ -9,7 +10,7 @@ class FastApiJsonRPCIntegration(Integration):
9
10
identifier = "fastapi_jsonrpc"
11
_already_enabled: bool = False
12
- def __init__(self, transaction_name_generator: TransactionNameGenerator | None = None):
13
+ def __init__(self, transaction_name_generator: Optional[TransactionNameGenerator] = None):
14
self.transaction_name_generator = transaction_name_generator or default_transaction_name_generator
15
16
@staticmethod
0 commit comments