We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fd7f0c commit 28445d1Copy full SHA for 28445d1
sqlmodel/main.py
@@ -568,7 +568,9 @@ def get_config(name: str) -> Any:
568
field = original_field
569
else:
570
annotated_field = get_annotations(new_cls.__dict__).get(k, {})
571
- annotated_field_meta = getattr(annotated_field,"__metadata__", (()))
+ annotated_field_meta = getattr(
572
+ annotated_field, "__metadata__", (())
573
+ )
574
field = next(
575
(f for f in annotated_field_meta if isinstance(f, FieldInfo)), v
576
) # type: ignore[assignment]
0 commit comments