Skip to content

Specify key type of EdgeSettings.qn_domains and NodeSettings.qn_domains #281

@redeboer

Description

@redeboer

The key of qn_domains in NodeSettings and EdgeSettings can be typed with an alias like EdgeQuantumNumber instead of Any, see #278 (comment)). So the type would be something like:

EdgeQuantumNumberType = Union[
    type[EdgeQuantumNumbers.pid],
    type[EdgeQuantumNumbers.mass],
    type[EdgeQuantumNumbers.width],
    ...
    type[EdgeQuantumNumbers.g_parity],
]
NodeQuantumNumberType = Union[
    type[NodeQuantumNumbers.l_magnitude],
    ...
]

Metadata

Metadata

Labels

⚙️ EnhancementImprovements and optimizations of existing features❔ QuestionDiscuss this matter in the team

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions