Inheriting from untyped class and overriding __init__
breaks abstract class detection
#17781
Labels
bug
mypy got something wrong
Bug Report
I'm creating an
ABC
inheriting from an untyped class and override its__init__
function. Then, all child classes are detected as being abstract, even though they are not.The error is not caused when removing the overriding the init function or removing the inheritance from the untyped base class
To Reproduce
https://mypy-play.net/?mypy=1.11.2&python=3.12&gist=6b11b5a5c3ef54947fb0874cade6ce98
Expected Behavior
This code should not produce any errors as the abstract method is implemented.
Actual Behavior
Found 1 error in 1 file (checked 1 source file)
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: