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
class User(orm.core.Entity):
name = orm.PrimaryKey(str)
profile = orm.Required(orm.json)
When I attempt to make use of this field, mypy fails to see orm.json as being equivalent to a dict, so I can neither call user.profile.copy() nor can I return user.profile as a dict directly.
The text was updated successfully, but these errors were encountered:
I have a model class like:
When I attempt to make use of this field, mypy fails to see
orm.json
as being equivalent to adict
, so I can neither calluser.profile.copy()
nor can I returnuser.profile
as a dict directly.The text was updated successfully, but these errors were encountered: