X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=list_utils.py;h=d70159a1b2dadb61640eae20f029608cabd2f46e;hb=b6dd2da4aecbc5d4690023d5a5e4f63052425444;hp=71630dc9a6fdb4d968f890b2ac4d3b8cb78360d2;hpb=e224aee343a337beefc61acdfa263c88f0bde312;p=python_utils.git diff --git a/list_utils.py b/list_utils.py index 71630dc..d70159a 100644 --- a/list_utils.py +++ b/list_utils.py @@ -65,7 +65,7 @@ def remove_list_if_one_element(lst: List[Any]) -> Any: return lst -def population_counts(lst: List[Any]) -> Counter: +def population_counts(lst: Sequence[Any]) -> Counter: """ Return a population count mapping for the list (i.e. the keys are list items and the values are the number of occurrances of that