Run mypy and pyright on our py312 stubs in CI (#10119)

This commit is contained in:
Alex Waygood
2023-04-30 15:31:08 +01:00
committed by GitHub
parent e0db6d2edd
commit 2c3449694b
7 changed files with 18 additions and 9 deletions

View File

@@ -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]