Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
🐛 change isinstance to tuple
Browse files Browse the repository at this point in the history
Co-authored-by: trag1c <[email protected]>
  • Loading branch information
Enderchief and trag1c authored Dec 21, 2021
1 parent d2160d2 commit b52a058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pincer/utils/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def remove_none(obj: Union[List, Dict, Set, Tuple]) -> Union[List, Dict, Set, Tu
"""
if isinstance(obj, list):
return [i for i in obj if i is not None]
elif isinstance(obj, list):
elif isinstance(obj, tuple):
return tuple(i for i in obj if i is not None)
elif isinstance(obj, set):
return obj - {None}
Expand Down

0 comments on commit b52a058

Please sign in to comment.