From 66ddb0c2b5965d00ac869e7348c90cdbbe0bca76 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Mon, 1 Apr 2024 18:19:38 -0400 Subject: [PATCH] Refactor Signature warning message in Signal class --- src/psygnal/_signal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/psygnal/_signal.py b/src/psygnal/_signal.py index 24dbb7b9..388400ed 100644 --- a/src/psygnal/_signal.py +++ b/src/psygnal/_signal.py @@ -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())