From 52967a151aed7fa5f8d7c30b541a7103ac447ed8 Mon Sep 17 00:00:00 2001 From: Max Fischer Date: Sat, 19 Oct 2024 22:42:39 +0200 Subject: [PATCH] mimick method location --- asyncstdlib/functools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/asyncstdlib/functools.py b/asyncstdlib/functools.py index 32f7727..b306e6a 100644 --- a/asyncstdlib/functools.py +++ b/asyncstdlib/functools.py @@ -138,6 +138,7 @@ def __init__( self.func = self.__wrapped__ = getter self.attrname = None self.__doc__ = getter.__doc__ + self.__module__ = getter.__module__ self._asynccontextmanager_type = asynccontextmanager_type def __set_name__(self, owner: Any, name: str) -> None: