Skip to content

Commit

Permalink
Add stubs for importlib.__init__
Browse files Browse the repository at this point in the history
Part of python#189
  • Loading branch information
brettcannon committed Jun 27, 2016
1 parent 55f3ca3 commit 53daa72
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions stdlib/3/importlib/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import sys
import types
from typing import Any, Mapping, Optional, Sequence


def __import__(name: str, globals: Mapping[str, Any] = None,
locals: Mapping[str, Any] = None, fromlist: Sequence[str] = (),
level: int = 0) -> types.ModuleType: ...


def import_module(name: str, package: str = None) -> types.ModuleType: ...


if sys.version_info >= (3, 3):
# Optionally returns a loader, but importlib.abc doesn't have a stub file.
def find_loader(name: str, path: str = None): ...


def invalidate_caches() -> None: ...


if sys.version_info >= (3, 4):
def reload(module: types.ModuleType) -> types.ModuleType: ...

0 comments on commit 53daa72

Please sign in to comment.