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

mypy doesn't see InstanceFlags #275

Open
LourensVeen opened this issue Oct 28, 2023 · 0 comments
Open

mypy doesn't see InstanceFlags #275

LourensVeen opened this issue Oct 28, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@LourensVeen
Copy link
Contributor

We're using a clever bit of metaprogramming to import the values of the InstanceFlags class into the libmuscle package namespace. Unfortunately, mypy doesn't understand this, as a result of which

from libmuscle import KEEPS_NO_STATE_FOR_NEXT_USE

gives

error: Module "libmuscle" has no attribute "KEEPS_NO_STATE_FOR_NEXT_USE"  [attr-defined]

We'll probably have to export this somewhat more manually.

@LourensVeen LourensVeen added the good first issue Good for newcomers label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant