Skip to content

Commit

Permalink
Use typing List/Dict
Browse files Browse the repository at this point in the history
  • Loading branch information
pipliggins committed Feb 9, 2024
1 parent 38a3713 commit ea03b4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pybamm/type_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
from __future__ import annotations

from typing import Union
from typing import Union, List, Dict
from typing_extensions import TypeAlias
import numpy as np
import pybamm
Expand All @@ -15,6 +15,6 @@
ChildValue: TypeAlias = Union[float, np.ndarray]
ChildSymbol: TypeAlias = Union[float, np.ndarray, pybamm.Symbol]

DomainType: TypeAlias = Union[list[str], str, None]
AuxiliaryDomainType: TypeAlias = Union[dict[str, str], None]
DomainsType: TypeAlias = Union[dict[str, Union[list[str], str]], None]
DomainType: TypeAlias = Union[List[str], str, None]
AuxiliaryDomainType: TypeAlias = Union[Dict[str, str], None]
DomainsType: TypeAlias = Union[Dict[str, Union[List[str], str]], None]

0 comments on commit ea03b4f

Please sign in to comment.