From 6743804c16d6500e09147d1850f43f3c50125f40 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 02:36:46 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/black/lines.py | 10 +--------- src/black/nodes.py | 10 +--------- src/blib2to3/pgen2/parse.py | 10 +--------- src/blib2to3/pgen2/pgen.py | 10 +--------- src/blib2to3/pgen2/tokenize.py | 10 +--------- src/blib2to3/pytree.py | 9 +-------- 6 files changed, 6 insertions(+), 53 deletions(-) diff --git a/src/black/lines.py b/src/black/lines.py index 76a7aeb533d..a8c6ef66f68 100644 --- a/src/black/lines.py +++ b/src/black/lines.py @@ -1,15 +1,7 @@ import itertools import math from dataclasses import dataclass, field -from typing import ( - Callable, - Iterator, - Optional, - Sequence, - TypeVar, - Union, - cast, -) +from typing import Callable, Iterator, Optional, Sequence, TypeVar, Union, cast from black.brackets import COMMA_PRIORITY, DOT_PRIORITY, BracketTracker from black.mode import Mode, Preview diff --git a/src/black/nodes.py b/src/black/nodes.py index 002e147d7c8..470dc248488 100644 --- a/src/black/nodes.py +++ b/src/black/nodes.py @@ -3,15 +3,7 @@ """ import sys -from typing import ( - Final, - Generic, - Iterator, - Literal, - Optional, - TypeVar, - Union, -) +from typing import Final, Generic, Iterator, Literal, Optional, TypeVar, Union if sys.version_info >= (3, 10): from typing import TypeGuard diff --git a/src/blib2to3/pgen2/parse.py b/src/blib2to3/pgen2/parse.py index 8d4543d938d..2ac89c97094 100644 --- a/src/blib2to3/pgen2/parse.py +++ b/src/blib2to3/pgen2/parse.py @@ -10,15 +10,7 @@ """ from contextlib import contextmanager -from typing import ( - TYPE_CHECKING, - Any, - Callable, - Iterator, - Optional, - Union, - cast, -) +from typing import TYPE_CHECKING, Any, Callable, Iterator, Optional, Union, cast from blib2to3.pgen2.grammar import Grammar from blib2to3.pytree import NL, Context, Leaf, Node, RawNode, convert diff --git a/src/blib2to3/pgen2/pgen.py b/src/blib2to3/pgen2/pgen.py index c984156c0fc..2be7b877909 100644 --- a/src/blib2to3/pgen2/pgen.py +++ b/src/blib2to3/pgen2/pgen.py @@ -2,15 +2,7 @@ # Licensed to PSF under a Contributor Agreement. import os -from typing import ( - IO, - Any, - Iterator, - NoReturn, - Optional, - Sequence, - Union, -) +from typing import IO, Any, Iterator, NoReturn, Optional, Sequence, Union from blib2to3.pgen2 import grammar, token, tokenize from blib2to3.pgen2.tokenize import GoodTokenInfo diff --git a/src/blib2to3/pgen2/tokenize.py b/src/blib2to3/pgen2/tokenize.py index 3a818b93e8c..f7d0215c4b5 100644 --- a/src/blib2to3/pgen2/tokenize.py +++ b/src/blib2to3/pgen2/tokenize.py @@ -29,15 +29,7 @@ import builtins import sys -from typing import ( - Callable, - Final, - Iterable, - Iterator, - Optional, - Pattern, - Union, -) +from typing import Callable, Final, Iterable, Iterator, Optional, Pattern, Union from blib2to3.pgen2.grammar import Grammar from blib2to3.pgen2.token import ( diff --git a/src/blib2to3/pytree.py b/src/blib2to3/pytree.py index bdc83bd3e00..d2d135e7d1d 100644 --- a/src/blib2to3/pytree.py +++ b/src/blib2to3/pytree.py @@ -12,14 +12,7 @@ # mypy: allow-untyped-defs, allow-incomplete-defs -from typing import ( - Any, - Iterable, - Iterator, - Optional, - TypeVar, - Union, -) +from typing import Any, Iterable, Iterator, Optional, TypeVar, Union from blib2to3.pgen2.grammar import Grammar