Skip to content

Commit 0403f9d

Browse files
authored
Refine the copy._SupportsReplace.__replace__ signature
1 parent f97c785 commit 0403f9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/copy.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ _SR = TypeVar("_SR", bound=_SupportsReplace)
99

1010
@type_check_only
1111
class _SupportsReplace(Protocol):
12-
# In reality doesn't support args, but there's no other great way to express this.
13-
def __replace__(self, *args: Any, **kwargs: Any) -> Self: ...
12+
# Usually there are *some* kwargs, but there's no great way to express this.
13+
def __replace__(self, /) -> Self: ...
1414

1515
# None in CPython but non-None in Jython
1616
PyStringMap: Any

0 commit comments

Comments
 (0)