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

Phantom import when importing from ctypes #1033

Open
rianhunter opened this issue Nov 12, 2023 · 1 comment
Open

Phantom import when importing from ctypes #1033

rianhunter opened this issue Nov 12, 2023 · 1 comment

Comments

@rianhunter
Copy link

Getting a missing CPyModule__ctypes when trying to compile the following file:

import ctypes

class c_timespec(ctypes.Structure):
    pass

mypyc seems to be incorrectly parsing the ctypes stub file and now automatically pulling in the _ctypes dependency.

@rianhunter
Copy link
Author

Note: I am happy to put all the effort into fixing this issue if someone can clarify what the bug is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant