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
I have created a generic class. Now I want to create a concrete subclass passing pydantic's BaseModel (or any class derived from it) as "placeholder". Upon creating the class (no instantiation required), pydantic throws an error.
Last entry in the call stack is:
File ~\<OMITTED>\pydantic\_internal\_model_construction.py:205, in ModelMetaclass.__getattr__(self, item)
202 if rebuilt_validator is not None:
203 # In this case, a validator was built, and so `__pydantic_core_schema__` should now be set
204 return getattr(self, '__pydantic_core_schema__')
--> 205 raise AttributeError(item)
Initial Checks
Description
I have created a generic class. Now I want to create a concrete subclass passing pydantic's
BaseModel
(or any class derived from it) as "placeholder". Upon creating the class (no instantiation required), pydantic throws an error.Last entry in the call stack is:
Raising
Example Code
Python, Pydantic & OS Version
Selected Assignee: @lig
The text was updated successfully, but these errors were encountered: