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.