-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Crash with custom plugin and ErrorCode
#15255
Labels
Comments
svalentin
pushed a commit
that referenced
this issue
May 31, 2023
A class marked with `allow_interpreted_subclasses=True` implicitly supports serialization while also allowing it to be subclassed by pure Python code. Fixes #15255 https://mypyc.readthedocs.io/en/latest/differences_from_python.html#pickling-and-copying-objects https://mypyc.readthedocs.io/en/latest/native_classes.html#inheritance
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
Cross posting it here for better visibility. The original post: #15218 (comment)
The crash / regression (in dev) is caused by the change in #15218.
The example below is with a custom plugin. However this does effect others as well if an error is emitted. I discovered it while testing code with the
pydantic
mypy plugin./CC: @svalentin
Traceback
To Reproduce
Make sure to install the latest compiled version of mypy. E.g. from https://github.com/mypyc/mypy_mypyc-wheels/releases/tag/v1.4.0%2Bdev.ce2c918f73fa4e98c9d0398401431fc45b608e29
Your Environment
The text was updated successfully, but these errors were encountered: