Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 16, 2024
1 parent d401d5c commit 6743804
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 53 deletions.
10 changes: 1 addition & 9 deletions src/black/lines.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 1 addition & 9 deletions src/black/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 1 addition & 9 deletions src/blib2to3/pgen2/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 1 addition & 9 deletions src/blib2to3/pgen2/pgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 1 addition & 9 deletions src/blib2to3/pgen2/tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
9 changes: 1 addition & 8 deletions src/blib2to3/pytree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6743804

Please sign in to comment.