OILS / mycpp / testpkg / module1.py View on Github | oilshell.org

36 lines, 15 significant
1"""
2module1.py
3"""
4from mylib import log
5from testpkg import module2
6
7CONST1 = 'CONST module1'
8
9
10def func1():
11 # type: () -> None
12 log('func1')
13 log(module2.CONST2)
14
15
16def fortytwo():
17 # type: () -> int
18 return 42
19
20
21class 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