From 8be6b21bedae5ab5148eba2c622434851e7ae586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hamal=20Dvo=C5=99=C3=A1k?= <mordae@anilinux.org> Date: Tue, 11 Mar 2025 17:56:28 +0100 Subject: [PATCH] Use functools.wraps --- lazy_player/reactive.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lazy_player/reactive.py b/lazy_player/reactive.py index a9ea19c..b8c957f 100644 --- a/lazy_player/reactive.py +++ b/lazy_player/reactive.py @@ -3,6 +3,7 @@ from __future__ import annotations import sys import traceback from contextvars import ContextVar +from functools import wraps from typing import Any, Callable, ClassVar, Generic, Self, TypeVar from weakref import WeakSet @@ -90,6 +91,7 @@ class Watcher: if not hasattr(self, "_watches"): self._watches = set() + @wraps(handler) def run_handler(): handler()