-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Labels
false-positivemypy gave an error on correct codemypy gave an error on correct codefeaturepriority-1-normal
Description
Currently the return type of A(...) is implicitly A even if A.__new__ return something else. If the return type is Any, maybe A(...) should have type Any, and if it's a subclass, we should also use that. Currently this is a little difficult to implement due to implementation limitations (we derive the type object identity from the return type of a type object). Maybe we should introduce a new attribute to Callable for this purpose.
Hnasar and mhxion
Metadata
Metadata
Assignees
Labels
false-positivemypy gave an error on correct codemypy gave an error on correct codefeaturepriority-1-normal