Skip to content

Commit 77c0942

Browse files
authored
PEP 705: Remove extra self parameter from example (#3934)
1 parent d7f551c commit 77c0942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peps/pep-0705.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ Keyword argument typing
353353
class Function(Protocol):
354354
def __call__(self, **kwargs: Unpack[Args]) -> None: ...
355355

356-
def impl(self, **kwargs: Unpack[ReadOnlyArgs]) -> None:
356+
def impl(**kwargs: Unpack[ReadOnlyArgs]) -> None:
357357
kwargs["key1"] = 3 # Type check error: key1 is readonly
358358

359359
fn: Function = impl # Accepted by type checker: function signatures are identical

0 commit comments

Comments
 (0)