Commit graph

7 commits

Author SHA1 Message Date
default
125cb6f78c Remove unused Sequence imports after argv type change
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:51:22 +00:00
default
e514e01ee5 Use Iterable[str] instead of Sequence[str] for argv parameters
argparse.ArgumentParser.parse_args() accepts any Iterable[str], not
just Sequence[str]. The latest typeshed reflects this with the signature
`def parse_args(args: Iterable[str] | None = ...) -> Namespace`.

Update all main(argv:) parameters from `Sequence[str] | None` to
`Iterable[str] | None` and adjust imports accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 07:45:29 +00:00
Anthony Sottile
a49f812a96 py39+
Committed via https://github.com/asottile/all-repos
2024-10-11 19:30:07 -04:00
Anthony Sottile
8f6152921e drop python3.6 support
python 3.6 reached end of life on 2021-12-23

Committed via https://github.com/asottile/all-repos
2022-01-15 19:24:05 -05:00
Anthony Sottile
39ab2ed85e replace exit(main()) with raise SystemExit(main())
Committed via https://github.com/asottile/all-repos
2021-10-23 13:23:50 -04:00
Pedro Calleja
926208fb31 hotfix: the user may be define an extra arguments for a removed hook 2020-05-18 19:57:49 -07:00
Anthony Sottile
b9cc9d7761 remove flake8 and suggest pycqa/flake8 2020-05-14 16:00:29 -07:00