From b3ceb293d9e69295a190fed93517cbe1b7372154 Mon Sep 17 00:00:00 2001 From: Hadi Alqattan Date: Fri, 5 Mar 2021 22:58:00 +0300 Subject: [PATCH 1/1] Remove unused import statements using Pycln. (#2021) * remove unused imports using Pycln. * reverse comma style. --- src/blib2to3/pgen2/driver.py | 3 --- src/blib2to3/pgen2/parse.py | 2 -- src/blib2to3/pgen2/pgen.py | 1 - src/blib2to3/pytree.py | 1 - 4 files changed, 7 deletions(-) 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 -- 2.39.5