Skip to content

Commit

Permalink
Fix check in inject_kwargs_params
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Dec 14, 2023
1 parent 0a8b26b commit 7f6db35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stgpytools/types/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7f6db35

Please sign in to comment.