From 7f6db351d4f4c99c1b7080cfcb1ce14542eadd00 Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Thu, 14 Dec 2023 21:53:17 +0100 Subject: [PATCH] Fix check in inject_kwargs_params --- stgpytools/types/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stgpytools/types/utils.py b/stgpytools/types/utils.py index da301be..1818a35 100644 --- a/stgpytools/types/utils.py +++ b/stgpytools/types/utils.py @@ -269,7 +269,7 @@ def __get__( def _wrapper(self: T, *_args: P.args, **kwargs: P.kwargs) -> R: assert this.signature - if not isinstance(self, class_type): # type: ignore + if class_obj and not isinstance(self, class_type): # type: ignore _args = (self, *_args) # type: ignore self = class_obj # type: ignore