1 | """
|
2 | module1.py
|
3 | """
|
4 | from mylib import log
|
5 | from testpkg import module2
|
6 |
|
7 | CONST1 = 'CONST module1'
|
8 |
|
9 |
|
10 | def func1():
|
11 | # type: () -> None
|
12 | log('func1')
|
13 | log(module2.CONST2)
|
14 |
|
15 |
|
16 | def fortytwo():
|
17 | # type: () -> int
|
18 | return 42
|
19 |
|
20 |
|
21 | class Cat(object):
|
22 |
|
23 | def __init__(self):
|
24 | # type: () -> None
|
25 | """Empty constructor for mycpp."""
|
26 | pass
|
27 |
|
28 | def Speak(self):
|
29 | # type: () -> None
|
30 | log('cat')
|
31 |
|
32 | def AbstractMethod(self):
|
33 | # type: () -> None
|
34 | raise NotImplementedError()
|
35 |
|
36 |
|