Skip to content

Commit 8639e50

Browse files
authored
Remove types.LazyImportType from pure variant of types (#48)
1 parent b90e3ea commit 8639e50

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/types.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ def _m(self): pass
7676
# CapsuleType cannot be accessed from pure Python,
7777
# so there is no fallback definition.
7878

79-
exec("lazy import sys as _lazy_sys", _lz := {})
80-
LazyImportType = type(_lz['_lazy_sys'])
81-
del _lz
79+
# LazyImportType in pure Python cannot be guaranteed
80+
# without overriding the filter, so there is no fallback.
8281

8382
del sys, _f, _g, _C, _c, _ag, _cell_factory # Not for export
8483

0 commit comments

Comments
 (0)