alert_observer.hpp
This commit is contained in:
1 parent
4a67a2cc59
commit
035ad1cce0
2 files changed
+9
-1
No files matched your search
@@ -0,0 +1,8 @@
|
||||
from ..utils import Struct
|
||||
alert_observer = Struct({
|
||||
'alert_handler': None,
|
||||
'handle_alert': 0,
|
||||
'types': [],
|
||||
'num_types': 0,
|
||||
'flags': 0
|
||||
})
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
class AttrDict(dict):
|
||||
class Struct(dict):
|
||||
def __getattr__(self, attr):
|
||||
return self[attr]
|
||||
def __setattr__(self, attr, value):
|
||||
|
||||
Reference in new issue
Block a user