Skip to content

Commit

Permalink
Remove python 3.9 incompatible type hint
Browse files Browse the repository at this point in the history
python 3.9 doesn't like:

def find_dict_in_list_by_key_value( ... ) -> dict | None:

Removed the type hint:

def find_dict_in_list_by_key_value( ... ):
  • Loading branch information
allenrobel committed Dec 5, 2024
1 parent 14da7d7 commit 1e028a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/modules/dcnm_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,9 +659,7 @@ def __init__(self, module):
self.log.debug(msg)

@staticmethod
def find_dict_in_list_by_key_value(
search: list, key: str, value: str
) -> dict | None:
def find_dict_in_list_by_key_value(search: list, key: str, value: str):
"""
# Summary
Expand Down

0 comments on commit 1e028a2

Please sign in to comment.