Skip to content

Commit f4e5949

Browse files
committed
Revert "fix: optional type var for Resource with python 3.13+"
This reverts commit ef3e523.
1 parent 4a97fa6 commit f4e5949

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scim2_models/resources/resource.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
from datetime import datetime
32
from typing import TYPE_CHECKING
43
from typing import Annotated
@@ -103,11 +102,7 @@ def from_schema(cls, schema: "Schema") -> type["Extension"]:
103102
return _make_python_model(schema, cls)
104103

105104

106-
# TypeVar with default parameter is available in Python 3.13+
107-
if sys.version_info >= (3, 13):
108-
AnyExtension = TypeVar("AnyExtension", bound="Extension", default="Extension")
109-
else: # pragma: no cover
110-
AnyExtension = TypeVar("AnyExtension", bound="Extension")
105+
AnyExtension = TypeVar("AnyExtension", bound="Extension")
111106

112107
_PARAMETERIZED_CLASSES: dict[tuple[type, tuple[Any, ...]], type] = {}
113108

0 commit comments

Comments
 (0)