From e4b56b1be8b3a6d89f92afa36bfc7793ab35b406 Mon Sep 17 00:00:00 2001 From: Elazar Date: Wed, 24 Aug 2016 16:08:46 +0300 Subject: [PATCH] Stub for pyclbr.py (#487) * Stub for pyclbr.pyi * Quote opaque type with "" --- stdlib/3/pyclbr.pyi | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 stdlib/3/pyclbr.pyi diff --git a/stdlib/3/pyclbr.pyi b/stdlib/3/pyclbr.pyi new file mode 100644 index 000000000..03c83f9e7 --- /dev/null +++ b/stdlib/3/pyclbr.pyi @@ -0,0 +1,40 @@ +from typing import List, Union, Sequence, Optional, Dict + + +class Class: + module = ... # type: str + name = ... # type: str + super = Optional[List[Union["Class", str]]] + methods = ... # type: Dict[str, int] + file = ... # type: int + lineno = ... # type: int + + def __init__(self, + module: str, + name: str, + super: Optional[List[Union["Class", str]]], + file: str, + lineno: int) -> None: ... + + +class Function: + module = ... # type: str + name = ... # type: str + file = ... # type: int + lineno = ... # type: int + + def __init__(self, + module: str, + name: str, + file: str, + lineno: int) -> None: ... + + +def readmodule(module: str, + path: Optional[Sequence[str]] = ... + ) -> Dict[str, Class]: ... + + +def readmodule_ex(module: str, + path: Optional[Sequence[str]] = ... + ) -> Dict[str, Union[Class, Function, List[str]]]: ...