From c32594409fcbb94899eb189fb30c5a8fe493a79b Mon Sep 17 00:00:00 2001 From: Emery Berger Date: Mon, 18 Dec 2023 21:04:00 -0500 Subject: [PATCH] Avoid lambda. --- scalene/replacement_sem_lock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scalene/replacement_sem_lock.py b/scalene/replacement_sem_lock.py index 67648a02c..44a741695 100644 --- a/scalene/replacement_sem_lock.py +++ b/scalene/replacement_sem_lock.py @@ -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, ())