Skip to content

Commit 0befb7b

Browse files
committed
pythongh-120417: Remove unused imports in the stdlib
1 parent 97b69db commit 0befb7b

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

Lib/dataclasses.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import itertools
88
import abc
99
from reprlib import recursive_repr
10-
from types import FunctionType, GenericAlias
1110

1211

1312
__all__ = ['dataclass',
@@ -333,7 +332,7 @@ def __set_name__(self, owner, name):
333332
# it.
334333
func(self.default, owner, name)
335334

336-
__class_getitem__ = classmethod(GenericAlias)
335+
__class_getitem__ = classmethod(types.GenericAlias)
337336

338337

339338
class _DataclassParams:

Lib/ntpath.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import os
2121
import sys
22-
import stat
2322
import genericpath
2423
from genericpath import *
2524

Lib/pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class or function within a module or module in a package. If the
7575
from reprlib import Repr
7676
from traceback import format_exception_only
7777

78-
from _pyrepl.pager import (get_pager, plain, escape_less, pipe_pager,
78+
from _pyrepl.pager import (get_pager, plain, pipe_pager,
7979
plain_pager, tempfile_pager, tty_pager)
8080

8181

Lib/stat.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
Suggested usage: from stat import *
44
"""
5-
import sys
65

76
# Indices for stat struct members in the tuple returned by os.stat()
87

0 commit comments

Comments
 (0)