mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
Config: Add method __setitem__()
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
7cd94fa3db
commit
8f464fe278
1 changed files with 3 additions and 0 deletions
|
|
@ -109,6 +109,9 @@ class Config(): # export
|
||||||
def __getitem__(self, key: str) -> Optional[str]:
|
def __getitem__(self, key: str) -> Optional[str]:
|
||||||
return self.get(key)
|
return self.get(key)
|
||||||
|
|
||||||
|
def __setitem__(self, key: str, value: str):
|
||||||
|
return self.set(key, value)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def parent(self):
|
def parent(self):
|
||||||
return self.__parent
|
return self.__parent
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue