Skip to content

Commit eea850d

Browse files
committed
Fix py 3.9 tests
1 parent d2b6e86 commit eea850d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/auth0_server_python/error/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Error classes for the auth0-server-python SDK.
33
These exceptions provide specific error types for different failure scenarios.
44
"""
5+
from typing import Optional
6+
57

68
class Auth0Error(Exception):
79
"""Base class for all Auth0 SDK errors."""
@@ -50,7 +52,7 @@ class PollingApiError(ApiError):
5052
Contains details about the original error from Auth0 and the requested polling interval.
5153
"""
5254

53-
def __init__(self, code: str, message: str, interval: int | None, cause=None):
55+
def __init__(self, code: str, message: str, interval: Optional[int], cause=None):
5456
super().__init__(code, message, cause)
5557
self.interval = interval
5658

0 commit comments

Comments
 (0)