From b30371c6993b6c9057084247c817daa8dd970b59 Mon Sep 17 00:00:00 2001 From: russellballestrini Date: Sat, 1 Feb 2020 12:47:57 -0500 Subject: [PATCH] python 2.7 doesn't support type annotations. --- nested_lookup/nested_lookup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nested_lookup/nested_lookup.py b/nested_lookup/nested_lookup.py index 8de0b4b..0b11b4d 100644 --- a/nested_lookup/nested_lookup.py +++ b/nested_lookup/nested_lookup.py @@ -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