Skip to content

Commit

Permalink
Avoid lambda.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Dec 19, 2023
1 parent 09ee005 commit c325944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scalene/replacement_sem_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ def __exit__(self, *args: Any) -> None:
super().__exit__(*args)

def __reduce__(self) -> Tuple[Callable[[], ReplacementSemLock], Tuple[()]]:
return (lambda: ReplacementSemLock(), ())
return (ReplacementSemLock, ())

0 comments on commit c325944

Please sign in to comment.