Skip to content

Commit 4a97fa6

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

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scim2_models/reference.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
from collections import UserString
32
from typing import Any
43
from typing import Generic
@@ -12,11 +11,7 @@
1211

1312
from .utils import UNION_TYPES
1413

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")
14+
ReferenceTypes = TypeVar("ReferenceTypes")
2015

2116
URIReference = NewType("URIReference", str)
2217
ExternalReference = NewType("ExternalReference", str)

0 commit comments

Comments
 (0)