Fix linting issues (#12898)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Alex Waygood
2024-10-24 14:26:37 +01:00
committed by GitHub
parent 783171b9f7
commit 9ed47fa8ec
5 changed files with 8 additions and 16 deletions

View File

@@ -1,9 +1,10 @@
from __future__ import annotations
from _typeshed import StrOrBytesPath
from os import PathLike
from os.path import abspath, expanduser, expandvars
from typing_extensions import assert_type
from typing import AnyStr, Union
from typing_extensions import assert_type
def test_str_path(str_path: StrOrBytesPath) -> None:

View File

@@ -2036,7 +2036,6 @@ class NodeVisitor:
@deprecated("Replaced by visit_Constant; removed in Python 3.14")
def visit_Ellipsis(self, node: Ellipsis) -> Any: ... # type: ignore[deprecated]
class NodeTransformer(NodeVisitor):
def generic_visit(self, node: AST) -> AST: ...
# TODO: Override the visit_* methods with better return types.

View File

@@ -1,5 +1,5 @@
import sys
import re
import sys
from _warnings import warn as warn, warn_explicit as warn_explicit
from collections.abc import Sequence
from types import ModuleType, TracebackType