mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Code improvements from new Ruff checks (#11498)
This commit is contained in:
@@ -21,7 +21,7 @@ EMPTY: list[str] = []
|
||||
parser = argparse.ArgumentParser(description="Run mypy on typeshed's own code in the `scripts` and `tests` directories.")
|
||||
parser.add_argument(
|
||||
"dir",
|
||||
choices=DIRECTORIES_TO_TEST + (EMPTY,),
|
||||
choices=(*DIRECTORIES_TO_TEST, EMPTY),
|
||||
nargs="*",
|
||||
action="extend",
|
||||
help=f"Test only these top-level typeshed directories (defaults to {DIRECTORIES_TO_TEST!r})",
|
||||
|
||||
Reference in New Issue
Block a user