Skip to content

Commit

Permalink
Fixed issue with deprecation of empty list check
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Aug 28, 2024
1 parent faf21a8 commit 0311a06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dynapyt/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ def filtered(self, func, f, args):
sub_args = args
sub_arg_names = []
for arg in sub_args:
if arg == () or arg == [] or arg == {}:
if (
isinstance(arg, tuple) or isinstance(arg, list) or isinstance(arg, dict)
) and len(arg) == 0:
continue
if type(arg) == tuple and len(arg) == 1:
arg = arg[0]
Expand Down

0 comments on commit 0311a06

Please sign in to comment.