Skip to content

Commit

Permalink
Fix Dict type hint for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Sep 24, 2024
1 parent 1c39776 commit be56f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions message_ix/util/sankey.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, List, Optional, Tuple, Union
from typing import Any, Dict, List, Optional, Tuple, Union

from pyam import IamDataFrame

Expand All @@ -18,7 +18,7 @@ def map_for_sankey(
year: int,
region: str,
exclude: List[Optional[str]] = [],
) -> dict[str, Tuple[Union[List, Any, LiteralString], Union[List, Any, LiteralString]]]:
) -> Dict[str, Tuple[Union[List, Any, LiteralString], Union[List, Any, LiteralString]]]:
"""Maps input to output flows to enable Sankey plots.
Parameters
Expand Down

0 comments on commit be56f01

Please sign in to comment.