mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
importlib.resources is a package on 3.11+ (#9822)
This commit is contained in:
12
stdlib/importlib/resources/abc.pyi
Normal file
12
stdlib/importlib/resources/abc.pyi
Normal file
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
# These are all actually defined in this file on 3.11+,
|
||||
# and re-exported from importlib.abc,
|
||||
# but it's much less code duplication for typeshed if we pretend that they're still defined
|
||||
# in importlib.abc on 3.11+, and re-exported from this file
|
||||
from importlib.abc import (
|
||||
ResourceReader as ResourceReader,
|
||||
Traversable as Traversable,
|
||||
TraversableResources as TraversableResources,
|
||||
)
|
||||
Reference in New Issue
Block a user