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

Fix mypy warning(s) #652

Closed
wtfsck opened this issue Dec 29, 2024 · 0 comments
Closed

Fix mypy warning(s) #652

wtfsck opened this issue Dec 29, 2024 · 0 comments

Comments

@wtfsck
Copy link
Member

wtfsck commented Dec 29, 2024

See CI

mypy 1.14.0 (compiled: yes)
src/iced_x86/_iced_x86_py.pyi:12: error: Detected enum "iced_x86._iced_x86_py.CC_a" in a type stub with zero members. There is a chance this is due to a recent change in the semantics of enum membership. If so, use `member = value` to mark an enum member, instead of `member: type`  [misc]
src/iced_x86/_iced_x86_py.pyi:12: note: See https://typing.readthedocs.io/en/latest/spec/enums.html#defining-members
src/iced_x86/_iced_x86_py.pyi:13: error: Detected enum "iced_x86._iced_x86_py.CC_ae" in a type stub with zero members. There is a chance this is due to a recent change in the semantics of enum membership. If so, use `member = value` to mark an enum member, instead of `member: type`  [misc]
@wtfsck wtfsck closed this as completed in b2ac61d Jan 21, 2025
wtfsck added a commit that referenced this issue Jan 21, 2025
add "#type: ignore" to empty python enum types. Fixes #652
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