Skip to content

Commit 0b9b024

Browse files
stasspumer
authored andcommitted
fix: fixed py3.9 compatibility
1 parent a5682e0 commit 0b9b024

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fastapi_jsonrpc/contrib/sentry/integration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import Optional
12
from fastapi_jsonrpc import MethodRoute, EntrypointRoute
23
from sentry_sdk.integrations import Integration
34

@@ -9,7 +10,7 @@ class FastApiJsonRPCIntegration(Integration):
910
identifier = "fastapi_jsonrpc"
1011
_already_enabled: bool = False
1112

12-
def __init__(self, transaction_name_generator: TransactionNameGenerator | None = None):
13+
def __init__(self, transaction_name_generator: Optional[TransactionNameGenerator] = None):
1314
self.transaction_name_generator = transaction_name_generator or default_transaction_name_generator
1415

1516
@staticmethod

0 commit comments

Comments
 (0)