Skip to content

Commit aef58b4

Browse files
committed
BaseConfig: type our getters (and helpers)
1 parent 431fedd commit aef58b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iocage/lib/Config/Jail/BaseConfig.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def _set_priority(self, value: typing.Union[int, str], **kwargs):
215215
self.data["priority"] = str(value)
216216

217217
# legacy support
218-
def _get_tag(self) -> str:
218+
def _get_tag(self) -> typing.Optional[str]:
219219

220220
if self._has_legacy_tag is True:
221221
return self.data["tag"]
@@ -396,7 +396,7 @@ def _skip_on_error(self, **kwargs):
396396
except AttributeError:
397397
return False
398398

399-
def __getitem_user(self, key):
399+
def __getitem_user(self, key: str) -> typing.Any:
400400

401401
# passthrough existing properties
402402
try:

0 commit comments

Comments
 (0)