From ac5aedddcd361c3abe2db23788b0d25bd907f5e2 Mon Sep 17 00:00:00 2001 From: Adam Morris Date: Wed, 28 Jun 2023 17:42:48 +0200 Subject: [PATCH] use typing.Dict in typedef --- src/decaylanguage/decay/decay.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decaylanguage/decay/decay.py b/src/decaylanguage/decay/decay.py index 91aad938..5e9c7732 100644 --- a/src/decaylanguage/decay/decay.py +++ b/src/decaylanguage/decay/decay.py @@ -9,7 +9,7 @@ from collections import Counter from copy import deepcopy from itertools import product -from typing import TYPE_CHECKING, Any, Iterable, Iterator, TypeVar, Union +from typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, TypeVar, Union from particle import PDGID, ParticleNotFound from particle.converters import EvtGenName2PDGIDBiMap @@ -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: