Skip to content

mypy doesn't see InstanceFlags #275

@LourensVeen

Description

@LourensVeen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions