Skip to content

Commit 7ddcab1

Browse files
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
1 parent 881a452 commit 7ddcab1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sqlmodel/_compat.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,16 @@ def get_annotations(class_dict: Dict[str, Any]) -> Dict[str, Any]:
127127
raw_annotations: dict[str, Any] = class_dict.get("__annotations__", {})
128128
if sys.version_info >= (3, 14) and "__annotations__" not in class_dict:
129129
# See https://github.com/pydantic/pydantic/pull/11991
130-
from annotationlib import Format, call_annotate_function, get_annotate_from_class_namespace
130+
from annotationlib import (
131+
Format,
132+
call_annotate_function,
133+
get_annotate_from_class_namespace,
134+
)
131135

132136
if annotate := get_annotate_from_class_namespace(class_dict):
133-
raw_annotations = call_annotate_function(annotate, format=Format.FORWARDREF)
137+
raw_annotations = call_annotate_function(
138+
annotate, format=Format.FORWARDREF
139+
)
134140
return raw_annotations
135141

136142
def is_table_model_class(cls: Type[Any]) -> bool:

0 commit comments

Comments
 (0)