mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
importlib.resources is a package on 3.11+ (#9822)
This commit is contained in:
@@ -152,6 +152,7 @@ importlib: 2.7-
|
||||
importlib.metadata: 3.8-
|
||||
importlib.metadata._meta: 3.10-
|
||||
importlib.resources: 3.7-
|
||||
importlib.resources.abc: 3.11-
|
||||
inspect: 2.7-
|
||||
io: 2.7-
|
||||
ipaddress: 3.3-
|
||||
|
||||
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