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.
1 parent 325def9 commit 860f674Copy full SHA for 860f674
stdlib/copy.pyi
@@ -1,16 +1,15 @@
1
import sys
2
from typing import Any, Protocol, TypeVar
3
-from typing_extensions import ParamSpec, Self
+from typing_extensions import Self
4
5
__all__ = ["Error", "copy", "deepcopy"]
6
7
_T = TypeVar("_T")
8
-_SR = TypeVar("_SR", bound=_SupportsReplace[...])
9
-_P = ParamSpec("_P")
+_SR = TypeVar("_SR", bound=_SupportsReplace)
10
11
-class _SupportsReplace(Protocol[_P]):
+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: _P.args, **kwargs: _P.kwargs) -> Self: ...
+ def __replace__(self, *args: Any, **kwargs: Any) -> Self: ...
14
15
# None in CPython but non-None in Jython
16
PyStringMap: Any
0 commit comments