Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mypyc ignores custom __del__ without warning #1035

Open
nickdrozd opened this issue Nov 22, 2023 · 1 comment · May be fixed by python/mypy#18519
Open

Mypyc ignores custom __del__ without warning #1035

nickdrozd opened this issue Nov 22, 2023 · 1 comment · May be fixed by python/mypy#18519
Labels
bug priority-0-high python compat Mypyc doesn't match CPython or documented semantics.

Comments

@nickdrozd
Copy link

Similar to #1013. A __del__ method won't be respected and no warning is issued.

It's possible to work around a restriction on __new__ by using a wrapper function to call a class. But there is no corresponding workaround for __del__, at least not that I'm aware of. So this is a bigger problem than missing __new__.

@advait-dixit
Copy link

Working on this. Will have an update or PR in a couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug priority-0-high python compat Mypyc doesn't match CPython or documented semantics.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants