mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-09 18:09:17 +08:00
Bump importlib to 3.14 (#14138)
This commit is contained in:
@@ -21,13 +21,6 @@ fractions.Fraction.__rpow__
|
||||
gzip.GzipFile.readinto
|
||||
gzip.GzipFile.readinto1
|
||||
gzip.compress
|
||||
importlib.abc.ResourceReader
|
||||
importlib.abc.Traversable
|
||||
importlib.abc.TraversableResources
|
||||
importlib.machinery.__all__
|
||||
importlib.machinery.AppleFrameworkLoader
|
||||
importlib.util.__all__
|
||||
importlib.util.Loader
|
||||
multiprocessing.forkserver.main
|
||||
multiprocessing.managers.BaseListProxy.clear
|
||||
multiprocessing.managers.BaseListProxy.copy
|
||||
@@ -93,6 +86,7 @@ typing.NewType.__mro_entries__
|
||||
|
||||
builtins.ellipsis # type is not exposed anywhere
|
||||
importlib._abc.Loader.exec_module # See Lib/importlib/_abc.py. Might be defined for backwards compatibility
|
||||
importlib.util.Loader.exec_module
|
||||
|
||||
# positional-only complaints caused by differences between typing aliases and the "real" classes in the stdlib
|
||||
_collections_abc.Coroutine.send
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import importlib.abc
|
||||
import importlib.util
|
||||
import pathlib
|
||||
import sys
|
||||
@@ -10,9 +9,14 @@ from importlib.machinery import ModuleSpec
|
||||
from types import ModuleType
|
||||
from typing_extensions import Self
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
from importlib.resources.abc import Traversable
|
||||
else:
|
||||
from importlib.abc import Traversable
|
||||
|
||||
|
||||
# Assert that some Path classes are Traversable.
|
||||
def traverse(t: importlib.abc.Traversable) -> None:
|
||||
def traverse(t: Traversable) -> None:
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user