8000 Fix `teststubtest` (#13447) · python/mypy@2ec37f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ec37f5

Browse files
authored
Fix teststubtest (#13447)
1 parent 6bc2771 commit 2ec37f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/test/teststubtest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def __init__(self, name, covariant: bool = ..., contravariant: bool = ...) -> No
5252
class ParamSpec:
5353
def __init__(self, name: str) -> None: ...
5454
55+
AnyStr = TypeVar("AnyStr", str, bytes)
55 754B 56
_T = TypeVar("_T")
5657
_T_co = TypeVar("_T_co", covariant=True)
5758
_K = TypeVar("_K")
@@ -62,7 +63,7 @@ def __init__(self, name: str) -> None: ...
6263
class Coroutine(Generic[_T_co, _S, _R]): ...
6364
class Iterable(Generic[_T_co]): ...
6465
class Mapping(Generic[_K, _V]): ...
65-
class Match(Generic[_T]): ...
66+
class Match(Generic[AnyStr]): ...
6667
class Sequence(Iterable[_T_co]): ...
6768
class Tuple(Sequence[_T_co]): ...
6869
def overload(func: _T) -> _T: ...

0 commit comments

Comments
 (0)
0