2323 from .datatypes import Varf , Varr , Vart
2424
2525
26- def info_cmd ():
26+ def info_cmd () -> None :
2727 """Print basic information about StagYY run.
2828
2929 Other Parameters:
@@ -74,7 +74,8 @@ def info_cmd():
7474
7575
7676def _pretty_print (key_val : Sequence [Tuple [str , str ]], sep : str = ': ' ,
77- min_col_width : int = 39 , text_width : Optional [int ] = None ):
77+ min_col_width : int = 39 ,
78+ text_width : Optional [int ] = None ) -> None :
7879 """Print a iterable of key/values.
7980
8081 Args:
@@ -117,14 +118,14 @@ def _pretty_print(key_val: Sequence[Tuple[str, str]], sep: str = ': ',
117118
118119
119120def _layout (dict_vars : Mapping [str , Union [Varf , Varr , Vart ]],
120- dict_vars_extra : Mapping [str , Callable ]):
121+ dict_vars_extra : Mapping [str , Callable ]) -> None :
121122 """Print nicely [(var, description)] from phyvars."""
122123 desc = [(v , m .description ) for v , m in dict_vars .items ()]
123124 desc .extend ((v , baredoc (m )) for v , m in dict_vars_extra .items ())
124125 _pretty_print (desc , min_col_width = 26 )
125126
126127
127- def var_cmd ():
128+ def var_cmd () -> None :
128129 """Print a list of available variables.
129130
130131 See :mod:`stagpy.phyvars` where the lists of variables organized by command
@@ -153,7 +154,7 @@ def var_cmd():
153154 print ()
154155
155156
156- def version_cmd ():
157+ def version_cmd () -> None :
157158 """Print StagPy version.
158159
159160 Use :data:`stagpy.__version__` to obtain the version in a script.
@@ -162,7 +163,7 @@ def version_cmd():
162163
163164
164165def report_parsing_problems (
165- parsing_out : Tuple [Any , Sequence [Path ], Sequence [Path ]]):
166+ parsing_out : Tuple [Any , Sequence [Path ], Sequence [Path ]]) -> None :
166167 """Output message about potential parsing problems."""
167168 _ , empty , faulty = parsing_out
168169 if CONFIG_FILE in empty or CONFIG_FILE in faulty :
@@ -177,7 +178,7 @@ def report_parsing_problems(
177178 sep = '\n ' , end = '\n \n ' , file = sys .stderr )
178179
179180
180- def config_pp (subs : Iterable [str ]):
181+ def config_pp (subs : Iterable [str ]) -> None :
181182 """Pretty print of configuration options.
182183
183184 Args:
@@ -198,7 +199,7 @@ def config_pp(subs: Iterable[str]):
198199 print ()
199200
200201
201- def config_cmd ():
202+ def config_cmd () -> None :
202203 """Configuration handling.
203204
204205 Other Parameters:
0 commit comments