Skip to content

Commit

Permalink
Fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Sep 11, 2024
1 parent ac1053e commit 96427eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dynapyt/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def set_coverage(self, coverage_dir: str):
self.coverage_path.unlink()

@lru_cache(maxsize=128)
def filtered(self, func, f, args):
def filtered(self, docs, args):
if len(args) > 0:
sub_args = args
else:
Expand Down Expand Up @@ -152,7 +152,7 @@ def call_if_exists(self, f, *args):
args_for_filter.append(arg)
except:
pass
is_filtered = self.filtered(func, f, tuple(args_for_filter))
is_filtered = self.filtered(docs, tuple(args_for_filter))

if len(args) < 2 or not is_filtered:
return_value = func(*args)
Expand Down

0 comments on commit 96427eb

Please sign in to comment.