-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.pyi
69 lines (55 loc) · 1.38 KB
/
test.pyi
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
57
58
59
60
61
62
63
64
65
66
67
68
from typing import Any, List
any_var: Any
int_var: int
ellipsis_var: ...
list_var: List[int]
ellipsis_assign = ...
int_assign = 34
str_assign = "Foo"
list_alias = List[int]
def no_return_type(): ...
def return_none() -> None: ...
def return_any() -> Any: ...
def return_int() -> int: ...
def no_arg_type(foo) -> None: ...
def arg_type_none(foo: None) -> None: ...
def arg_type_any(foo: Any) -> None: ...
def arg_type_int(foo: int) -> None: ...
def no_kwonly_arg_type(*, abc) -> None: ...
def no_varargs_type(*args, **kwargs) -> None: ...
if True:
def sole_if_path(): ...
if True:
def if_path(): ...
elif False:
def elif1_path(): ...
elif False:
def elif2_path(): ...
else:
def else_path(): ...
class Foo: ...
class Bar: pass
class TestClass:
no_arg_type = ""
arg_type_ellipsis: ...
arg_type: int
arg_type_and_default: str = ""
def no_return_type(self): ...
def return_none(self) -> None: ...
def return_any(self) -> Any: ...
def return_int(self) -> int: ...
def missing_self() -> None: ...
@staticmethod
def first_unannotated(foo) -> None: ...
@classmethod
def cls_method(cls) -> None: ...
if True:
def sole_if_path(self): ...
if True:
def if_path(self): ...
elif False:
def elif1_path(self): ...
elif False:
def elif2_path(self): ...
else:
def else_path(self): ...