mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 05:11:09 +08:00
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:
@@ -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:
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user