fix after pydantic update, pin dependencies

This commit is contained in:
collerek
2021-02-28 09:16:36 +01:00
parent 88baf9ebf0
commit 62a6fb9063
6 changed files with 20 additions and 8 deletions

View File

@ -1,3 +1,4 @@
import inspect
from typing import Any, List, Optional, TYPE_CHECKING, Type, Union
import sqlalchemy
@ -89,9 +90,10 @@ class BaseField(FieldInfo):
:rtype: bool
"""
return (
field_name not in ["default", "default_factory", "alias"]
field_name not in ["default", "default_factory", "alias", "allow_mutation"]
and not field_name.startswith("__")
and hasattr(cls, field_name)
and not callable(getattr(cls, field_name))
)
@classmethod