-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrong.py
More file actions
63 lines (36 loc) · 1 KB
/
wrong.py
File metadata and controls
63 lines (36 loc) · 1 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
57
58
59
60
61
62
63
from my_lib import Object
import os
from my_lib import Object3
from my_lib import Object2
import sys
from third_party import lib15, lib1, lib2, lib3, lib4, lib5, lib6, lib7, lib8, lib9, lib10, lib11, lib12, lib13, lib14
import sys
from __future__ import absolute_import
from third_party import lib3
import numpy as np
from typing import Tuple, List, Dict, Optional, Set, Union
def f( x,y = None):
...
def g(x: int, y: Optional[int] = None) -> int:
return "asd"
Vector = List[float]
def func() -> Vector:
return [1, 2, 3]
def h(x: Union[bool, List[str]]) -> Tuple[str, int]:
return "asd", 5
def bad_type(x: int):
...
bad_type('asd') # type: ignore
if __name__ == "__main__":
print('asd', "asd")
# fmt: off
a = np.array([
[1, 0, 0, 0],
[0, -1, 0, 0],
[0, 0, 1, 0],
[0, 0, 0, -1],
])
# fmt: on
x=5+2
# Long line
print('asdasdasgdiausgduiasgduiasgdyas giudg aiusdg iausgd iuags diupags dipuag duiag sdiupags dasuigd ')