mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add --strict-bytes and --local-partial-types to self check (#13476)
* Add `--strict-bytes` and `--local-patial-types` to self check These two options will be on by default in `--strict` in `mypy@2.0` * Annotate `_LOADERS` in `pytype_test`
This commit is contained in:
@@ -40,7 +40,7 @@ from ts_utils.utils import SupportedVersionsDict, parse_stdlib_versions_file, su
|
||||
|
||||
TYPESHED_SUBDIRS = ["stdlib", "stubs"]
|
||||
TYPESHED_HOME = "TYPESHED_HOME"
|
||||
_LOADERS = {}
|
||||
_LOADERS: dict[str, tuple[pytype_config.Options, load_pytd.Loader]] = {}
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
||||
@@ -55,6 +55,8 @@ def run_mypy_as_subprocess(directory: str, platform: str, version: str) -> Retur
|
||||
"--python-version",
|
||||
version,
|
||||
"--strict",
|
||||
"--strict-bytes",
|
||||
"--local-partial-types",
|
||||
"--pretty",
|
||||
"--show-traceback",
|
||||
"--no-error-summary",
|
||||
|
||||
Reference in New Issue
Block a user