Remove unused Sequence imports after argv type change

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
default 2026-05-04 07:51:22 +00:00
parent e514e01ee5
commit 125cb6f78c
24 changed files with 24 additions and 24 deletions

View file

@ -5,7 +5,7 @@ import ast
import platform
import sys
import traceback
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
def main(argv: Iterable[str] | None = None) -> int:

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import ast
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from typing import NamedTuple

View file

@ -3,7 +3,7 @@ from __future__ import annotations
import argparse
import io
import tokenize
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from tokenize import tokenize as tokenize_tokenize
NON_CODE_TOKENS = frozenset((

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import json
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from typing import Any

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import os.path
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from pre_commit_hooks.util import cmd_output

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import os.path
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
def main(argv: Iterable[str] | None = None) -> int:

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import sys
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
if sys.version_info >= (3, 11): # pragma: >=3.11 cover
import tomllib

View file

@ -3,7 +3,7 @@ from __future__ import annotations
import argparse
import re
import sys
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from re import Pattern

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import xml.sax.handler
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
def main(argv: Iterable[str] | None = None) -> int:

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
from collections.abc import Generator
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from typing import Any
from typing import NamedTuple

View file

@ -3,7 +3,7 @@ from __future__ import annotations
import argparse
import ast
import traceback
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from typing import NamedTuple

View file

@ -1,7 +1,7 @@
from __future__ import annotations
import argparse
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
BLACKLIST = [
b'BEGIN RSA PRIVATE KEY',

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import os
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from typing import IO

View file

@ -14,7 +14,7 @@ from __future__ import annotations
import argparse
from collections.abc import Callable
from collections.abc import Iterable
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from typing import Any
from typing import IO

View file

@ -1,7 +1,7 @@
from __future__ import annotations
import argparse
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
def main(argv: Iterable[str] | None = None) -> int:

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import os
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from pre_commit_hooks.util import cmd_output

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import collections
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
CRLF = b'\r\n'

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import re
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from typing import AbstractSet
from pre_commit_hooks.util import CalledProcessError

View file

@ -1,7 +1,7 @@
from __future__ import annotations
import sys
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
def main(argv: Iterable[str] | None = None) -> int:

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import re
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
from typing import IO

View file

@ -20,7 +20,7 @@ complicated YAML files.
from __future__ import annotations
import argparse
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
QUOTES = ["'", '"']

View file

@ -5,7 +5,7 @@ import io
import re
import sys
import tokenize
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
if sys.version_info >= (3, 12): # pragma: >=3.12 cover
FSTRING_START = tokenize.FSTRING_START

View file

@ -3,7 +3,7 @@ from __future__ import annotations
import argparse
import os.path
import re
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
def main(argv: Iterable[str] | None = None) -> int:

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import os
from collections.abc import Iterable, Sequence
from collections.abc import Iterable
def _fix_file(