mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 21:01:52 +08:00
builtins: remove unused imports (#4715)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -1,23 +1,11 @@
|
||||
# True and False are deliberately omitted because they are keywords in
|
||||
# Python 3, and stub files conform to Python 3 syntax.
|
||||
|
||||
from _typeshed import (
|
||||
AnyPath,
|
||||
OpenBinaryMode,
|
||||
OpenBinaryModeReading,
|
||||
OpenBinaryModeUpdating,
|
||||
OpenBinaryModeWriting,
|
||||
OpenTextMode,
|
||||
ReadableBuffer,
|
||||
SupportsKeysAndGetItem,
|
||||
SupportsWrite,
|
||||
)
|
||||
from _typeshed import ReadableBuffer, SupportsKeysAndGetItem, SupportsWrite
|
||||
from abc import ABCMeta
|
||||
from ast import AST, mod
|
||||
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
|
||||
from types import CodeType, TracebackType
|
||||
from ast import mod
|
||||
from types import CodeType
|
||||
from typing import (
|
||||
IO,
|
||||
AbstractSet,
|
||||
Any,
|
||||
AnyStr,
|
||||
|
||||
@@ -1,23 +1,11 @@
|
||||
# True and False are deliberately omitted because they are keywords in
|
||||
# Python 3, and stub files conform to Python 3 syntax.
|
||||
|
||||
from _typeshed import (
|
||||
AnyPath,
|
||||
OpenBinaryMode,
|
||||
OpenBinaryModeReading,
|
||||
OpenBinaryModeUpdating,
|
||||
OpenBinaryModeWriting,
|
||||
OpenTextMode,
|
||||
ReadableBuffer,
|
||||
SupportsKeysAndGetItem,
|
||||
SupportsWrite,
|
||||
)
|
||||
from _typeshed import ReadableBuffer, SupportsKeysAndGetItem, SupportsWrite
|
||||
from abc import ABCMeta
|
||||
from ast import AST, mod
|
||||
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
|
||||
from types import CodeType, TracebackType
|
||||
from ast import mod
|
||||
from types import CodeType
|
||||
from typing import (
|
||||
IO,
|
||||
AbstractSet,
|
||||
Any,
|
||||
AnyStr,
|
||||
|
||||
@@ -12,7 +12,6 @@ from _typeshed import (
|
||||
SupportsLessThanT,
|
||||
SupportsWrite,
|
||||
)
|
||||
from abc import ABCMeta
|
||||
from ast import AST, mod
|
||||
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
|
||||
from types import CodeType, TracebackType
|
||||
@@ -20,7 +19,6 @@ from typing import (
|
||||
IO,
|
||||
AbstractSet,
|
||||
Any,
|
||||
AnyStr,
|
||||
BinaryIO,
|
||||
ByteString,
|
||||
Callable,
|
||||
|
||||
Reference in New Issue
Block a user