From fb8db10d712be2a06422b0f2d2dd096c3b4b151a Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sun, 20 Aug 2023 21:26:55 +0100 Subject: [PATCH] str --- pep-lint.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pep-lint.py b/pep-lint.py index 4a43cdbce19..51e7c3f28ce 100755 --- a/pep-lint.py +++ b/pep-lint.py @@ -13,7 +13,6 @@ TYPE_CHECKING = False if TYPE_CHECKING: - import os from collections.abc import Iterable, Iterator, KeysView, Sequence from typing import TypeAlias @@ -80,7 +79,7 @@ MAILMAN_3_MESSAGE_PATTERN = re.compile(r"[\w\-]+@python\.org/message/[a-z0-9]+/?(#[a-z0-9]+)?", re.ASCII | re.IGNORECASE) -def check(filenames: Sequence[str | os.PathLike[str]] = (), /) -> int: +def check(filenames: Sequence[str] = (), /) -> int: """The main entry-point.""" if filenames: filenames = map(Path, filenames)