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
{{ message }}
Repository navigation
Unexpected error when inheriting a class from Popen and overriding some method in it #7597
Are you reporting a bug, or opening a feature request?
Bug
Please insert below the code you are checking with mypy,
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
changed the title [-]Unexpected error when inveriting object from Popen and overriding some method[/-][+]Unexpected error when inheriting a class from Popen and overriding some method in it[/+]on Oct 2, 2019
Activity
[-]Unexpected error when inveriting object from Popen and overriding some method[/-][+]Unexpected error when inheriting a class from Popen and overriding some method in it[/+]msullivan commentedon Oct 2, 2019
Yeah this got introduced in 0.730. I need to spend some time tweaking the rules for
__new__return types maybe.Only return a declared type from __new__ if it is a subtype of the class
Only return a declared type from __new__ if it is a subtype of the cl…