File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 41
41
@click .pass_context
42
42
@click .argument ("props" , nargs = - 1 )
43
43
@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 :
45
49
"""Get a list of jails and print the property."""
46
50
47
- logger = ctx .parent .logger
51
+ logger : libiocage . lib . Logger . Logger = ctx .parent .logger
48
52
host = iocage .lib .Host .HostGenerator (logger = logger )
49
53
50
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 ) :
119
- return "=" in property_string
122
+ def _is_setter_property (property_string : str ) -> bool :
123
+ return ( "=" in property_string )
You can’t perform that action at this time.
0 commit comments