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
# TODO: Revisit the need for _ModelMetaclass hack in pydantic v2
# subfields, e.g. in `list[MyModel]` as `get_origin(MyModel) is None`. Here, we want allow_none# to be set to True so that Model is allowed to validate a None value.## TODO: Revisit the need for _ModelMetaclass hack in pydantic v2def__instancecheck__(self, instance: Any) ->bool:
ifinstanceisNone:
returnTruereturnsuper().__instancecheck__(instance)
classModel(GenericModel, Generic[_RootT], DataClassBase, metaclass=_ModelMetaclass):
"""
Adatamodelcontainingavalueparsedaccordingtothemodel.
The text was updated successfully, but these errors were encountered:
omnipy/src/omnipy/data/model.py
Line 99 in 86e1ee9
The text was updated successfully, but these errors were encountered: