mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +08:00
Run mypy and pyright on our py312 stubs in CI (#10119)
This commit is contained in:
@@ -17,7 +17,6 @@ __all__ = [
|
||||
"ParsingError",
|
||||
"MissingSectionHeaderError",
|
||||
"ConfigParser",
|
||||
"SafeConfigParser",
|
||||
"RawConfigParser",
|
||||
"Interpolation",
|
||||
"BasicInterpolation",
|
||||
@@ -29,6 +28,9 @@ __all__ = [
|
||||
"MAX_INTERPOLATION_DEPTH",
|
||||
]
|
||||
|
||||
if sys.version_info < (3, 12):
|
||||
__all__ += ["SafeConfigParser"]
|
||||
|
||||
_Section: TypeAlias = Mapping[str, str]
|
||||
_Parser: TypeAlias = MutableMapping[str, _Section]
|
||||
_ConverterCallback: TypeAlias = Callable[[str], Any]
|
||||
|
||||
@@ -272,7 +272,7 @@ if sys.version_info >= (3, 10):
|
||||
def __next__(self) -> _T_co: ...
|
||||
|
||||
if sys.version_info >= (3, 12):
|
||||
class batched(Iterator[_T_co], Generic[_T_co]):
|
||||
class batched(Iterator[tuple[_T_co, ...]], Generic[_T_co]):
|
||||
def __new__(cls, iterable: Iterable[_T_co], n: int) -> Self: ...
|
||||
def __iter__(self) -> Self: ...
|
||||
def __next__(self) -> tuple[_T_co, ...]: ...
|
||||
|
||||
Reference in New Issue
Block a user