Skip to content

Commit

Permalink
Remove more vestiges of the dictionary mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
bbayles committed May 20, 2024
1 parent 6063f08 commit 7f00269
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion more_itertools/more.py
Original file line number Diff line number Diff line change
Expand Up @@ -4716,7 +4716,7 @@ def join_mappings(**field_to_map):
>>> user_scores = {'elliot': 50, 'claris': 60}
>>> user_times = {'elliot': 30, 'claris': 40}
>>> dict(join_mappings(score=user_scores, time=user_times))
>>> join_mappings(score=user_scores, time=user_times)
{'elliot': {'score': 50, 'time': 30}, 'claris': {'score': 60, 'time': 40}}
"""
ret = defaultdict(dict)
Expand Down
5 changes: 3 additions & 2 deletions more_itertools/more.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ from typing import (
ContextManager,
Generic,
Hashable,
Mapping,
Iterable,
Iterator,
overload,
Expand Down Expand Up @@ -696,5 +697,5 @@ def filter_map(
) -> Iterator[_V]: ...
def powerset_of_sets(iterable: Iterable[_T]) -> Iterator[set[_T]]: ...
def join_mappings(
**field_to_map: dict[Any, dict[Any, Any]]
) -> dict[Any, dict[Any, Any]]: ...
**field_to_map: Mapping[_T, _V]
) -> dict[_T, dict[str, _V]]: ...

0 comments on commit 7f00269

Please sign in to comment.