Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Oct 17, 2024
1 parent b991cc5 commit 13fdaff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/protocol_arg.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Protocol

class P(Protocol):
def method1(self, arg: int) -> None: ... # Y067 Argument "arg" to protocol method "method1" should probably not be positional-or-keyword. Make it positional-only, since usually you don't want to mandate a specific argument name
def method1(self, arg: int) -> None: ... # Y091 Argument "arg" to protocol method "method1" should probably not be positional-or-keyword. Make it positional-only, since usually you don't want to mandate a specific argument name
def method2(self, arg: str, /) -> None: ...
def method3(self, *, arg: str) -> None: ...
def method4(self, arg: int, /) -> None: ...
Expand Down

0 comments on commit 13fdaff

Please sign in to comment.