Browse Source

bpo-40443: Remove unused imports (GH-25429)

* pyclbr no longer uses copy
* typing no longer uses ast

Issue discovered by pyflakes.
pull/17938/merge
Victor Stinner 5 years ago
committed by GitHub
parent
commit
a6a5c91b1e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Lib/pyclbr.py
  2. 1
      Lib/typing.py
  3. 2
      Misc/NEWS.d/next/Library/2021-04-16-02-03-00.bpo-40443.Io6FHL.rst

1
Lib/pyclbr.py

@ -42,7 +42,6 @@ shouldn't happen often.
"""
import ast
import copy
import sys
import importlib.util

1
Lib/typing.py

@ -20,7 +20,6 @@ At large scale, the structure of the module is following:
"""
from abc import abstractmethod, ABCMeta
import ast
import collections
import collections.abc
import contextlib

2
Misc/NEWS.d/next/Library/2021-04-16-02-03-00.bpo-40443.Io6FHL.rst

@ -0,0 +1,2 @@
Remove unused imports: pyclbr no longer uses copy, and typing no longer uses
ast. Patch by Victor Stinner.
Loading…
Cancel
Save