Skip to content

mypy complaining when using literals #584

@ntadej

Description

@ntadej

I use the following code:

from particle.pdgid import literals as pdgid
foo = pdgid.gamma.abspid

mypy complains with

Module has no attribute "gamma"

Is there a workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions