Skip to content

Commit a7a2b01

Browse files
committed
Make SupportsConcat and variants protocols
1 parent 98b844d commit a7a2b01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/_operator.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ class _SupportsRAnd(Protocol[_T_contra, _U_co]):
6666
def __rand__(self, other: _T_contra, /) -> _U_co: ...
6767

6868
@type_check_only
69-
class _SupportsConcat(SupportsGetItem[Any, Any], _SupportsAdd[_T_contra, _U_co]): ...
69+
class _SupportsConcat(SupportsGetItem[Any, Any], _SupportsAdd[_T_contra, _U_co], Protocol[_T_contra, _U_co]): ...
7070

7171
@type_check_only
72-
class _SupportsRConcat(SupportsGetItem[Any, Any], _SupportsRAdd[_T_contra, _U_co]): ...
72+
class _SupportsRConcat(SupportsGetItem[Any, Any], _SupportsRAdd[_T_contra, _U_co], Protocol[_T_contra, _U_co]): ...
7373

7474
@type_check_only
7575
class _SupportsFloorDiv(Protocol[_T_contra, _U_co]):
@@ -172,7 +172,7 @@ class _SupportsIAnd(Protocol[_T_contra, _U_co]):
172172
def __iand__(self, other: _T_contra, /) -> _U_co: ... # noqa: Y034
173173

174174
@type_check_only
175-
class _SupportsIConcat(SupportsGetItem[Any, Any], _SupportsIAdd[_T_contra, _U_co]): ...
175+
class _SupportsIConcat(SupportsGetItem[Any, Any], _SupportsIAdd[_T_contra, _U_co], Protocol[_T_contra, _U_co]): ...
176176

177177
@type_check_only
178178
class _SupportsIFloorDiv(Protocol[_T_contra, _U_co]):

0 commit comments

Comments
 (0)