Skip to content

Commit

Permalink
Refactor Signature warning message in Signal class
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Apr 1, 2024
1 parent ff18b86 commit 66ddb0c
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 @@ -320,7 +320,7 @@ def __init__(
if len(types) > 1:
warnings.warn(
"Only a single argument is accepted when directly providing a"
f" `Signature`. These args were ignored: {types[1:]}", # type: ignore
" `Signature`. Extra args ignored.",
stacklevel=2,
)
types = tuple(x.annotation for x in types[0].parameters.values())
Expand Down

0 comments on commit 66ddb0c

Please sign in to comment.