Skip to content

Commit 5749138

Browse files
committed
style: group annotationlib imports for ruff I001
Co-authored-by: VyrnSynx <[email protected]>
1 parent dcfa07c commit 5749138

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/msgspec/_utils.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ def _eval_type(t, globalns, localns):
5353

5454

5555
if sys.version_info >= (3, 14):
56-
from annotationlib import Format as _AnnotationFormat
57-
from annotationlib import call_annotate_function as _call_annotate_function
58-
from annotationlib import get_annotations as _get_class_annotations
56+
from annotationlib import (
57+
Format as _AnnotationFormat,
58+
call_annotate_function as _call_annotate_function,
59+
get_annotations as _get_class_annotations,
60+
)
5961

6062
def call_annotate_forwardref(annotate):
6163
"""Evaluate a class annotate function without requiring names to exist.

0 commit comments

Comments
 (0)