use protocol for sys.meta_path (#5349)

This commit is contained in:
Akuli
2021-05-06 17:12:34 +03:00
committed by GitHub
parent d16017ba0d
commit bb5fb845f2
2 changed files with 13 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ class SourceLoader(ResourceLoader, ExecutionLoader, metaclass=ABCMeta):
def get_source(self, fullname: str) -> Optional[str]: ...
def path_stats(self, path: _Path) -> Mapping[str, Any]: ...
# Please keep in sync with sys._MetaPathFinder
class MetaPathFinder(Finder):
def find_module(self, fullname: str, path: Optional[Sequence[_Path]]) -> Optional[Loader]: ...
def invalidate_caches(self) -> None: ...