Skip to content

Commit 860f674

Browse files
committed
Address Eric's feedback
1 parent 325def9 commit 860f674

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

stdlib/copy.pyi

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import sys
22
from typing import Any, Protocol, TypeVar
3-
from typing_extensions import ParamSpec, Self
3+
from typing_extensions import Self
44

55
__all__ = ["Error", "copy", "deepcopy"]
66

77
_T = TypeVar("_T")
8-
_SR = TypeVar("_SR", bound=_SupportsReplace[...])
9-
_P = ParamSpec("_P")
8+
_SR = TypeVar("_SR", bound=_SupportsReplace)
109

11-
class _SupportsReplace(Protocol[_P]):
10+
class _SupportsReplace(Protocol):
1211
# 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: ...
12+
def __replace__(self, *args: Any, **kwargs: Any) -> Self: ...
1413

1514
# None in CPython but non-None in Jython
1615
PyStringMap: Any

0 commit comments

Comments
 (0)