Debian Codegraph @

tests/example-project/src/pypackage/pure_py_module.py

raw
1 def foo(a, b):
2 """
3 >>> foo(1, 1)
4 2
5 """
6 return a + b
7
8
9 class Eggs:
10 def __init__(self, a, b):
11 """
12 >>> eggs = Eggs(1, 1)
13 >>> eggs.a
14 1
15 >>> eggs.b
16 1
17 """
18 self.a = a
19 self.b = b
20
21 def foo(self):
22 """
23 >>> eggs = Eggs(1, 1)
24 >>> eggs.foo()
25 2
26 """
27 return self.a + self.b