python 2.7 doesn't support type annotations.

This commit is contained in:
russellballestrini 2020-02-01 12:47:57 -05:00
parent b48e099d03
commit b30371c699

View file

@ -83,7 +83,7 @@ def get_occurrence_of_key(dictionary, key):
return _get_occurrence(dictionary=dictionary, item="key", keyword=key)
def get_occurrences_and_values(items: list, value: any) -> dict:
def get_occurrences_and_values(items, value):
"""
Method to get occurrence of a value in a nested list of dictionary