Unfortunately int.__new__(cls) does not always return an instance of cls
If cls is int, and the argument has an __int__ method that returns a subclass of int (that is not an int), then int.__new__ will return that. Will need to make the typeCall rewriting criteria tighter.
Showing
Please register or sign in to comment