__repr__
defined from helper function cannot be overridden
#17562
Labels
bug
mypy got something wrong
Bug Report
I expect to be able to define
__repr__
via a function which returns a function -- this should act the same as if the function were defined inline. I then want to be able to subclass this and override it but I seemingly cannotTo Reproduce
https://mypy-play.net/?mypy=latest&python=3.12&gist=90291dba6f20ad59d33d32c420103fc3
Expected Behavior
it should accept this program -- maybe....
Actual Behavior
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: