Skip to content

Commit 07e1fb9

Browse files
committed
typing for cli/set.py
1 parent 35b6166 commit 07e1fb9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

iocage/cli/set.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,14 @@
4141
@click.pass_context
4242
@click.argument("props", nargs=-1)
4343
@click.argument("jail", nargs=1, required=True)
44-
def cli(ctx, props, jail):
44+
def cli(
45+
ctx: click.core.Context,
46+
props: typing.Tuple[str, ...],
47+
jail: str
48+
) -> None:
4549
"""Get a list of jails and print the property."""
4650

47-
logger = ctx.parent.logger
51+
logger: libiocage.lib.Logger.Logger = ctx.parent.logger
4852
host = iocage.lib.Host.HostGenerator(logger=logger)
4953

5054
# Defaults
@@ -115,5 +119,5 @@ def set_properties(
115119
return updated_properties
116120

117121

118-
def _is_setter_property(property_string):
119-
return "=" in property_string
122+
def _is_setter_property(property_string: str) -> bool:
123+
return ("=" in property_string)

0 commit comments

Comments
 (0)