You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to implement conversion where return type is polymorphic? #36
I do not seem to be able to do this of course, since the library believes I am looking for instances of BaseModel whereas I am targeting the class itself.
@from_json_string.instance(Type[pydantic.BaseModel]) does not work because it does not match on generics.
Activity
sobolevn commentedon Mar 2, 2020
Generic currently does not work that great. See #8
I would recommend to use regular classes for this case. For now 🙂
sobolevn commentedon Jun 11, 2021
Done! See #207