Implement ExportsContext.get_one

This commit is contained in:
jesopo 2019-02-07 10:10:13 +00:00
parent 90591ec5b4
commit e124b8e79d

View file

@ -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)