Skip to content

Commit

Permalink
use typing.List in typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
admorris committed Jun 28, 2023
1 parent ac5aedd commit c84198a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/decaylanguage/decay/decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from collections import Counter
from copy import deepcopy
from itertools import product
from typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, TypeVar, Union
from typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, List, TypeVar, Union

from particle import PDGID, ParticleNotFound
from particle.converters import EvtGenName2PDGIDBiMap
Expand Down Expand Up @@ -447,8 +447,8 @@ def __str__(self) -> str:


Self_DecayChain = TypeVar("Self_DecayChain", bound="DecayChain")
DecayModeDict = Dict[str, Union[float, str, list[Any]]]
DecayChainDict = Dict[str, list[DecayModeDict]]
DecayModeDict = Dict[str, Union[float, str, List[Any]]]
DecayChainDict = Dict[str, List[DecayModeDict]]


def _has_no_subdecay(ds: list[Any]) -> bool:
Expand Down

0 comments on commit c84198a

Please sign in to comment.