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
Mypyc apprently ignores custom __new__ methods without warning. It would be great if it could abide by the custom __new__, but otherwise a warning / error should be raised.
Fixespython#1020 (comment)
Surprisingly popular comment on a closed issue.
We still issue the warning, but we do trust the return type instead of
overruling it.
Maybe fixespython#16012
Mypyc apprently ignores custom
__new__
methods without warning. It would be great if it could abide by the custom__new__
, but otherwise a warning / error should be raised.Example code (see #1020 (comment)):
Code for running:
Running this interpreted gives:
Running compiled:
The interpreted and compiled behaviors are different, which is bad.
The text was updated successfully, but these errors were encountered: