Skip to content

Commit 5c11f01

Browse files
Reduce performance regression (#882)
1 parent a4d0034 commit 5c11f01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

msgspec/_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def _eval_type(t, globalns, localns):
7171
_eval_type = typing._eval_type
7272

7373

74-
if sys.version_info >= (3, 10):
75-
from inspect import get_annotations as _get_class_annotations
74+
if sys.version_info >= (3, 14):
75+
from annotationlib import get_annotations as _get_class_annotations
7676
else:
7777

7878
def _get_class_annotations(cls):

0 commit comments

Comments
 (0)