Open mikeshardmind opened 1 year ago
Hey @mikeshardmind, thanks for reporting this to us! I think this is something that we have run into trouble with before, but we didn't have the capacity at the time to implement a fix. I'll go through and see if it's something we're interested in coming back to, but either way, I'll add it to our backlog.
Pyre Bug
Bug description
Subclasses should not be able to change the type of their mutable attributes, see relevant open issue in mypy and recent discussion in python/typing
Reproduction steps
Expected behavior Pyre should not allow the subclass B
Logs
Please run your reproduction steps followed by
pyre rage > pyre_rage.log
, and upload the file here: