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 ef3e523 commit e14fdf0Copy full SHA for e14fdf0
scim2_models/reference.py
@@ -1,3 +1,4 @@
1
+import sys
2
from collections import UserString
3
from typing import Any
4
from typing import Generic
@@ -11,7 +12,11 @@
11
12
13
from .utils import UNION_TYPES
14
-ReferenceTypes = TypeVar("ReferenceTypes")
15
+# TypeVar with default parameter is available in Python 3.13+
16
+if sys.version_info >= (3, 13):
17
+ ReferenceTypes = TypeVar("ReferenceTypes", default=Any)
18
+else: # pragma: no cover
19
+ ReferenceTypes = TypeVar("ReferenceTypes")
20
21
URIReference = NewType("URIReference", str)
22
ExternalReference = NewType("ExternalReference", str)
0 commit comments