1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
<module type_stub # This module has an a…
<function def func(x: str, y: Any, z: Iterable[str]) -> int: ... # A simple function.>
<var var: list[str] = [] # Docstring override f…>
<class type_stub.Class
<method def __init__(): ...>
<var attr: int = 42 # An attribute>
<method def meth(self, y: bool) -> bool: ... # A simple method.>
<class type_stub.Class.Subclass
<method def __init__(): ...>
<var attr: str = '42' # An attribute>
<method def meth(self, y: bool) -> bool: ... # A simple method.>
>
<method def no_type_annotation(self, z): ... # A method not present…>
<method def overloaded(*args, **kwds): ... # An overloaded method…>
>
>
|