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.
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 whichgives
We'll probably have to export this somewhat more manually.