@@ -140,7 +140,7 @@ def cmp(x, y) -> int:
140140
141141 Compare the two objects x and y and return an integer according to the outcome.
142142
143- The return value is negative if x < y, zero if x == y and strictly positive if x > y.
143+ The return value is negative if `` x < y`` , zero if `` x == y`` and strictly positive if `` x > y`` .
144144 """
145145
146146 return int ((x > y ) - (x < y ))
@@ -199,7 +199,7 @@ def printt(obj: Any, *args, **kwargs) -> None:
199199 print (type (obj ), * args , ** kwargs )
200200
201201
202- def stderr_writer (* args , ** kwargs ):
202+ def stderr_writer (* args , ** kwargs ) -> None :
203203 """
204204 Write to stderr, flushing stdout beforehand and stderr afterwards.
205205 """
@@ -239,7 +239,7 @@ def str2tuple(input_string: str, sep: str = ',') -> Tuple[int, ...]:
239239
240240 The input string must represent a comma-separated series of integers.
241241
242- TODO: Allow custom types, not just ``int`` (making ``int`` the default)
242+ .. TODO: : Allow custom types, not just ``int`` (making ``int`` the default)
243243
244244 :param input_string: The string to be converted into a tuple
245245 :type input_string: str
@@ -277,9 +277,10 @@ def strtobool(val: Union[str, bool]) -> bool:
277277
278278def enquote_value (value : Any ) -> Union [str , bool , float ]:
279279 """
280- Adds quotes to the given value, suitable for use in a templating system such as Jinja2.
280+ Adds quotes (``'``) to the given value, suitable for use in a templating system such as Jinja2.
281281
282- floats, integers, booleans, None, and the strings "True", "False" and "None" are returned as-is.
282+ :class:`Floats <float>`, :class:`integers <int>`, :class:`booleans <bool>`, :py:obj:`None`,
283+ and the strings ``'True'``, ``'False'`` and ``'None'`` are returned as-is.
283284
284285 :param value: The value to enquote
285286 """
0 commit comments