Skip to content

Commit 125cb6f

Browse files
marinelayclaude
andcommitted
Remove unused Sequence imports after argv type change
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e514e01 commit 125cb6f

24 files changed

Lines changed: 24 additions & 24 deletions

pre_commit_hooks/check_ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import platform
66
import sys
77
import traceback
8-
from collections.abc import Iterable, Sequence
8+
from collections.abc import Iterable
99

1010

1111
def main(argv: Iterable[str] | None = None) -> int:

pre_commit_hooks/check_builtin_literals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import argparse
44
import ast
5-
from collections.abc import Iterable, Sequence
5+
from collections.abc import Iterable
66
from typing import NamedTuple
77

88

pre_commit_hooks/check_docstring_first.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import argparse
44
import io
55
import tokenize
6-
from collections.abc import Iterable, Sequence
6+
from collections.abc import Iterable
77
from tokenize import tokenize as tokenize_tokenize
88

99
NON_CODE_TOKENS = frozenset((

pre_commit_hooks/check_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import argparse
44
import json
5-
from collections.abc import Iterable, Sequence
5+
from collections.abc import Iterable
66
from typing import Any
77

88

pre_commit_hooks/check_merge_conflict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import argparse
44
import os.path
5-
from collections.abc import Iterable, Sequence
5+
from collections.abc import Iterable
66

77
from pre_commit_hooks.util import cmd_output
88

pre_commit_hooks/check_symlinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import argparse
44
import os.path
5-
from collections.abc import Iterable, Sequence
5+
from collections.abc import Iterable
66

77

88
def main(argv: Iterable[str] | None = None) -> int:

pre_commit_hooks/check_toml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import argparse
44
import sys
5-
from collections.abc import Iterable, Sequence
5+
from collections.abc import Iterable
66

77
if sys.version_info >= (3, 11): # pragma: >=3.11 cover
88
import tomllib

pre_commit_hooks/check_vcs_permalinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import argparse
44
import re
55
import sys
6-
from collections.abc import Iterable, Sequence
6+
from collections.abc import Iterable
77
from re import Pattern
88

99

pre_commit_hooks/check_xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import argparse
44
import xml.sax.handler
5-
from collections.abc import Iterable, Sequence
5+
from collections.abc import Iterable
66

77

88
def main(argv: Iterable[str] | None = None) -> int:

pre_commit_hooks/check_yaml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import argparse
44
from collections.abc import Generator
5-
from collections.abc import Iterable, Sequence
5+
from collections.abc import Iterable
66
from typing import Any
77
from typing import NamedTuple
88

0 commit comments

Comments
 (0)