Skip to content

Commit

Permalink
fix: dict[...] -> Dict[...] for 3.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwhalen committed Mar 26, 2024
1 parent c4fbe91 commit 4a2acf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions titbit/ast_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import ast
from ast import AST
from functools import lru_cache, partial
from typing import Iterable, Tuple, List, KT, VT, Sequence, Callable
from typing import Iterable, Tuple, List, KT, VT, Sequence, Callable, Dict
from collections.abc import Mapping # not from typing because need for singledispatch
from collections import defaultdict
import inspect
Expand Down Expand Up @@ -34,7 +34,7 @@ def yield_class_hierarchy(
yield from yield_class_hierarchy(module, obj, path + (obj.__name__,))


def group_values_by_key(kv_pairs: Iterable[Tuple[KT, VT]]) -> dict[KT, List[VT]]:
def group_values_by_key(kv_pairs: Iterable[Tuple[KT, VT]]) -> Dict[KT, List[VT]]:
"""
Groups values by key in a list.
Expand Down

0 comments on commit 4a2acf5

Please sign in to comment.