Init function to Entry added
This commit is contained in:
parent
df2c4f036f
commit
d6712834e2
@ -14,6 +14,10 @@ class Entry(object):
|
||||
"""
|
||||
val: Union[str, bool, u.Quantity]
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
for key, value in kwargs.items():
|
||||
self.__setattr__(key, value)
|
||||
|
||||
def __call__(self):
|
||||
return self.val if hasattr(self, "val") else None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user