Skip to content

Commit

Permalink
check for None in unique_types
Browse files Browse the repository at this point in the history
  • Loading branch information
avishaihalev committed May 8, 2024
1 parent b3d9b20 commit 372527d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expfig/functions/_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def str2none_eval(value):

@classmethod
def from_list(cls, list_like, arg_name=None):
unique_types = {type(x) for x in list_like}
unique_types = {type(x) for x in list_like if x is not None}

if len(unique_types) == 1:
_type = unique_types.pop()
Expand Down

0 comments on commit 372527d

Please sign in to comment.