From d6712834e27521f6061d80de83a795e8713dceb0 Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Fri, 17 Apr 2020 13:04:59 +0200 Subject: [PATCH] Init function to Entry added --- esbo_etc/classes/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esbo_etc/classes/config.py b/esbo_etc/classes/config.py index 3bdb4e8..445266f 100644 --- a/esbo_etc/classes/config.py +++ b/esbo_etc/classes/config.py @@ -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