Implement ExportsContext.get_one
This commit is contained in:
parent
90591ec5b4
commit
e124b8e79d
1 changed files with 2 additions and 0 deletions
|
@ -46,3 +46,5 @@ class ExportsContext(object):
|
||||||
self._parent._context_add(self.context, setting, value)
|
self._parent._context_add(self.context, setting, value)
|
||||||
def get_all(self, setting: str) -> typing.List[typing.Any]:
|
def get_all(self, setting: str) -> typing.List[typing.Any]:
|
||||||
return self._parent.get_all(setting)
|
return self._parent.get_all(setting)
|
||||||
|
def get_one(self, setting: str) -> typing.Optional[typing.Any]:
|
||||||
|
return self._parent.get_one(setting)
|
||||||
|
|
Loading…
Reference in a new issue