assigment
error when overriding create_model_instance
class method of SessionStore
.
#2056
Labels
bug
Something isn't working
What's wrong
mypy
doesn't recognize the type of the returned class fromget_model_class
when overridingSessionStore
, and because of that it gives falseassignemt
error alarm when assigningsuper().create_model_instance(data)
to a variableExample
mypy output :
How is that should be
RealmSession
should be the expected return type fromsuper().create_model_instance(data)
, so no error should ariseThe text was updated successfully, but these errors were encountered: