We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35b6166 commit 07e1fb9Copy full SHA for 07e1fb9
iocage/cli/set.py
@@ -41,10 +41,14 @@
41
@click.pass_context
42
@click.argument("props", nargs=-1)
43
@click.argument("jail", nargs=1, required=True)
44
-def cli(ctx, props, jail):
+def cli(
45
+ ctx: click.core.Context,
46
+ props: typing.Tuple[str, ...],
47
+ jail: str
48
+) -> None:
49
"""Get a list of jails and print the property."""
50
- logger = ctx.parent.logger
51
+ logger: libiocage.lib.Logger.Logger = ctx.parent.logger
52
host = iocage.lib.Host.HostGenerator(logger=logger)
53
54
# Defaults
@@ -115,5 +119,5 @@ def set_properties(
115
119
return updated_properties
116
120
117
121
118
-def _is_setter_property(property_string):
- return "=" in property_string
122
+def _is_setter_property(property_string: str) -> bool:
123
+ return ("=" in property_string)
0 commit comments