refs #0 The root commit.

This commit is contained in:
sbps-test user
2023-09-13 20:37:14 +03:00
commit 10eb607154
66 changed files with 1643 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
def get_pydantic_field(field_attrs: dict) -> tuple:
match field_attrs["type"]:
case "int" | "str":
field = (field_attrs["type"], ...)
case "file":
field = (str, None)
case _:
return ()
return field