From: Hadi Alqattan Date: Fri, 5 Mar 2021 19:58:00 +0000 (+0300) Subject: Remove unused import statements using Pycln. (#2021) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/b3ceb293d9e69295a190fed93517cbe1b7372154?ds=sidebyside;hp=12f98219bc83fa186cc97db7b614dccfb2a1db71 Remove unused import statements using Pycln. (#2021) * remove unused imports using Pycln. * reverse comma style. --- diff --git a/src/blib2to3/pgen2/driver.py b/src/blib2to3/pgen2/driver.py index 81940f7..af1dc6b 100644 --- a/src/blib2to3/pgen2/driver.py +++ b/src/blib2to3/pgen2/driver.py @@ -16,7 +16,6 @@ __author__ = "Guido van Rossum " __all__ = ["Driver", "load_grammar"] # Python imports -import codecs import io import os import logging @@ -24,7 +23,6 @@ import pkgutil import sys from typing import ( Any, - Callable, IO, Iterable, List, @@ -32,7 +30,6 @@ from typing import ( Text, Tuple, Union, - Sequence, ) # Pgen imports diff --git a/src/blib2to3/pgen2/parse.py b/src/blib2to3/pgen2/parse.py index 8c374d3..47c8f02 100644 --- a/src/blib2to3/pgen2/parse.py +++ b/src/blib2to3/pgen2/parse.py @@ -15,8 +15,6 @@ from . import token from typing import ( Optional, Text, - Sequence, - Any, Union, Tuple, Dict, diff --git a/src/blib2to3/pgen2/pgen.py b/src/blib2to3/pgen2/pgen.py index a685145..564ebbd 100644 --- a/src/blib2to3/pgen2/pgen.py +++ b/src/blib2to3/pgen2/pgen.py @@ -8,7 +8,6 @@ from typing import ( Any, Dict, IO, - Iterable, Iterator, List, Optional, diff --git a/src/blib2to3/pytree.py b/src/blib2to3/pytree.py index 6dba3c7..0c074f6 100644 --- a/src/blib2to3/pytree.py +++ b/src/blib2to3/pytree.py @@ -25,7 +25,6 @@ from typing import ( Union, Set, Iterable, - Sequence, ) from blib2to3.pgen2.grammar import Grammar