From 77c09421e5dea5474d3b45fc846e64d22d3551aa Mon Sep 17 00:00:00 2001 From: Pavel Karateev Date: Tue, 3 Sep 2024 17:07:09 +0200 Subject: [PATCH] PEP 705: Remove extra `self` parameter from example (#3934) --- peps/pep-0705.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0705.rst b/peps/pep-0705.rst index 6310b9087..6f7e0841f 100644 --- a/peps/pep-0705.rst +++ b/peps/pep-0705.rst @@ -353,7 +353,7 @@ Keyword argument typing class Function(Protocol): def __call__(self, **kwargs: Unpack[Args]) -> None: ... - def impl(self, **kwargs: Unpack[ReadOnlyArgs]) -> None: + def impl(**kwargs: Unpack[ReadOnlyArgs]) -> None: kwargs["key1"] = 3 # Type check error: key1 is readonly fn: Function = impl # Accepted by type checker: function signatures are identical