blob: 9c8b05d523588c09c4c6daeb297c779582d926fe (
plain)
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
|
""" file suppliermodule.py """
from typing import Optional
class Interface:
def get_value(self):
raise NotImplementedError
def set_value(self, value):
raise NotImplementedError
class CustomException(Exception): pass
class DoNothing: pass
class DoNothing2: pass
class DoSomething:
def __init__(
self,
a_string: str,
optional_int: int = None,
optional_int_2: Optional[int] = None):
self.my_string = a_string
self.my_int = optional_int
self.my_int_2 = optional_int_2
def do_it(self, new_int: int) -> int:
return self.my_int + new_int
|