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
Why? Because User is mutable. At anytime you can just user.is_paid = True | False to change its PaidUser instance check without mypy noticing the change.
We need to document this problem.
The text was updated successfully, but these errors were encountered:
As discussed in #127 (comment) I am openning a new issue.
This code is very risky one to write:
Why? Because
User
is mutable. At anytime you can justuser.is_paid = True | False
to change itsPaidUser
instance check withoutmypy
noticing the change.We need to document this problem.
The text was updated successfully, but these errors were encountered: