mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Fix various __all__-related errors and omissions (#8031)
This commit is contained in:
@@ -16,6 +16,22 @@ from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWra
|
||||
from typing import IO, Any, BinaryIO, NoReturn, Protocol, overload, runtime_checkable
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
__all__ = [
|
||||
"Loader",
|
||||
"Finder",
|
||||
"MetaPathFinder",
|
||||
"PathEntryFinder",
|
||||
"ResourceLoader",
|
||||
"InspectLoader",
|
||||
"ExecutionLoader",
|
||||
"FileLoader",
|
||||
"SourceLoader",
|
||||
"ResourceReader",
|
||||
"Traversable",
|
||||
"TraversableResources",
|
||||
]
|
||||
|
||||
_Path: TypeAlias = bytes | str
|
||||
|
||||
class Finder(metaclass=ABCMeta): ...
|
||||
|
||||
Reference in New Issue
Block a user