Add __slots__ for performance
This commit is contained in:
parent
0d7656acb2
commit
547cf6320e
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,11 @@ class RAOBReaderException(Exception):
|
|||
...
|
||||
|
||||
class RAOBSample():
|
||||
__slots__ = (
|
||||
'surface', 'height', 'pressure', 'temp', 'dewpoint',
|
||||
'wind_dir', 'wind_speed'
|
||||
)
|
||||
|
||||
def __init__(self):
|
||||
self.surface: bool = False
|
||||
self.height: float = None
|
||||
|
|
Loading…
Add table
Reference in a new issue