Call the apropriate __init__ function based on what __new__ returns
Was tricky to find a way to do this while still allowing rewriting. Right now we only attempt rewriting for a whitelisted set of __new__ functions where __new__(cls) always returns an instance of cls.
Showing
test/tests/new_returntype.py
0 → 100644
Please register or sign in to comment