-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path_basic.pyi
More file actions
56 lines (48 loc) · 1.53 KB
/
_basic.pyi
File metadata and controls
56 lines (48 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File generated with docstub
import configparser
import logging
from collections.abc import Sequence
from typing import Any, Literal, Self, Union
from _typeshed import Incomplete
from . import CustomException
logger: Incomplete
__all__ = [
"func_empty",
"ExampleClass",
]
def func_empty(a1, a2, a3) -> None: ...
def func_contains(
a1: list[float],
a2: dict[str, Union[int, str]],
a3: Sequence[int | float],
a4: frozenset[bytes],
a5: tuple[int],
a6: list[int, str],
a7: dict[str, int],
) -> None: ...
def func_literals(
a1: Literal[1, 3, "foo"], a2: Literal["uno", 2, "drei", "four"] = ...
) -> None: ...
def func_use_from_elsewhere(
a1: CustomException,
a2: ExampleClass,
a3: CustomException.NestedClass,
a4: ExampleClass.NestedClass,
) -> tuple[CustomException, ExampleClass.NestedClass]: ...
class ExampleClass:
class NestedClass:
def method_in_nested_class(self, a1: complex) -> None: ...
def __init__(self, a1: str, a2: float = ...) -> None: ...
def method(
self, a1: float, a2: float = ..., a3: float | None = ...
) -> list[float]: ...
@staticmethod
def some_staticmethod(a1: float, a2: str = ...) -> dict[str, Any]: ...
@property
def some_property(self) -> str: ...
@some_property.setter
def some_property(self, value: str) -> None: ...
@classmethod
def method_returning_cls(cls, config: configparser.ConfigParser) -> Self: ...
@classmethod
def method_returning_cls2(cls, config: configparser.ConfigParser) -> Self: ...