Skip to content

Commit

Permalink
Fix type annotations on remove_matching.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 9, 2023
1 parent 1dd12d6 commit 1339274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jaraco/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,8 @@ def random(self):


def remove_matching(
orig: collections.abc.MutableMapping[Any:Any], predicate: Union[str, callable]
orig: collections.abc.MutableMapping[Any, Any],
predicate: _Matchable,
):
"""
Remove items from orig that match the predicate.
Expand Down

0 comments on commit 1339274

Please sign in to comment.