Skip to content

Commit

Permalink
bug: change stack level on warning for _check_nargs
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Nov 6, 2024
1 parent d6281fc commit 1c9c92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psygnal/_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ def _check_nargs(
except ValueError as e:
warnings.warn(
f"{e}. To silence this warning, connect with " "`check_nargs=False`",
stacklevel=2,
stacklevel=4,
)
return None, None, False
try:
Expand Down

0 comments on commit 1c9c92a

Please sign in to comment.