We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
copy._SupportsReplace.__replace__
1 parent f97c785 commit 0403f9dCopy full SHA for 0403f9d
stdlib/copy.pyi
@@ -9,8 +9,8 @@ _SR = TypeVar("_SR", bound=_SupportsReplace)
9
10
@type_check_only
11
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: ...
+ # Usually there are *some* kwargs, but there's no great way to express this.
+ def __replace__(self, /) -> Self: ...
14
15
# None in CPython but non-None in Jython
16
PyStringMap: Any
0 commit comments