wip work on expanding fastapi docs

This commit is contained in:
collerek
2021-05-30 15:58:18 +02:00
parent 101f3be2d4
commit 5cbac6583e
7 changed files with 302 additions and 21 deletions

View File

@ -76,7 +76,7 @@ class UndefinedType: # pragma no cover
Undefined = UndefinedType()
__version__ = "0.10.9"
__version__ = "0.10.10"
__all__ = [
"Integer",
"BigInteger",

View File

@ -1,3 +1,5 @@
import string
from random import choices
from typing import (
Any,
Callable,
@ -73,7 +75,7 @@ class PydanticMixin(RelationMixin):
if field is not None:
fields_dict[name] = field
model = type(
cls.__name__,
f"{cls.__name__}_{''.join(choices(string.ascii_uppercase, k=3))}",
(pydantic.BaseModel,),
{"__annotations__": fields_dict, **defaults},
)