Skip to content

Commit

Permalink
Ruff formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored Jun 29, 2024
1 parent cd7db19 commit 5261e7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/syft/src/syft/util/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ def singleton(cls: Any) -> Callable:

@functools.wraps(cls)
def wrapper(*args: Any, **kwargs: Any) -> Any:
if cls in previous_instances and previous_instances.get(cls, None).get(
"args"
) == (args, kwargs):
if cls in previous_instances and previous_instances.get(cls).get("args") == (
args,
kwargs,
):
return previous_instances[cls].get("instance")
else:
previous_instances[cls] = {
Expand Down

0 comments on commit 5261e7b

Please sign in to comment.