-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_playground.py
More file actions
50 lines (38 loc) · 1.15 KB
/
Copy pathpython_playground.py
File metadata and controls
50 lines (38 loc) · 1.15 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
"""module doc string goes here"""
from dataclasses import dataclass
from typing import Optional, Union, List
import logging
logger = logging.getLogger(__name__)
@dataclass
class VentilatorMode:
"""description of class"""
body_systems: List[str]
code: Optional[str]
display: Optional[str]
system_url: Optional[str]
value: Optional[Union[int, float]]
def __init__(self) -> None:
self.body_systems = []
self.code = None
self.display = None
self.system_url = None
self.value = None
def Process(self, body_systems) -> None:
"""doc string goes here"""
self.body_systems = body_systems
@dataclass
class Ventilator(VentilatorMode):
"""description of class"""
def __init__(self) -> None:
"""doc string goes here"""
VentilatorMode.__init__(self)
self.body_systems = []
class Tester:
"""description of class"""
@staticmethod
def get_ventilator() -> None:
"""doc string goes here"""
vent = Ventilator()
vent.body_systems.append('Hello')
for bs in vent.body_systems:
logger.debug('bs is %s', bs)