pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0 (#6245)

* pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0

* pre-commit run --all-files
This commit is contained in:
Christian Clauss
2022-07-11 10:19:52 +02:00
committed by GitHub
parent 2d5dd6f132
commit b75a7c77f8
41 changed files with 56 additions and 41 deletions

View File

@ -10,7 +10,7 @@ python binary_search_tree_recursive.py
from __future__ import annotations
import unittest
from typing import Iterator
from collections.abc import Iterator
class Node:

View File

@ -2,8 +2,9 @@
from __future__ import annotations
from collections import deque
from collections.abc import Sequence
from dataclasses import dataclass
from typing import Any, Sequence
from typing import Any
@dataclass

View File

@ -37,7 +37,8 @@ https://www.geeksforgeeks.org/segment-tree-efficient-implementation/
"""
from __future__ import annotations
from typing import Any, Callable, Generic, TypeVar
from collections.abc import Callable
from typing import Any, Generic, TypeVar
T = TypeVar("T")

View File

@ -4,7 +4,7 @@ flake8 : passed
"""
from __future__ import annotations
from typing import Iterator
from collections.abc import Iterator
class RedBlackTree: