@@ -186,8 +186,8 @@ def _apply_defaults(func, args, kwargs):
186
186
187
187
def wraps (
188
188
ureg : "UnitRegistry" ,
189
- ret : Union [str , "Unit" , Iterable [str ], Iterable [ "Unit" ], None ],
190
- args : Union [str , "Unit" , Iterable [str ], Iterable [ "Unit" ], None ],
189
+ ret : Union [str , "Unit" , Iterable [Union [ str , "Unit" , None ] ], None ],
190
+ args : Union [str , "Unit" , Iterable [Union [ str , "Unit" , None ] ], None ],
191
191
strict : bool = True ,
192
192
) -> Callable [[Callable [..., T ]], Callable [..., Quantity [T ]]]:
193
193
"""Wraps a function to become pint-aware.
@@ -204,9 +204,9 @@ def wraps(
204
204
----------
205
205
ureg : pint.UnitRegistry
206
206
a UnitRegistry instance.
207
- ret : str, pint.Unit, iterable of str, or iterable of pint.Unit
207
+ ret : str, pint.Unit, or iterable of str or pint.Unit
208
208
Units of each of the return values. Use `None` to skip argument conversion.
209
- args : str, pint.Unit, iterable of str, or iterable of pint.Unit
209
+ args : str, pint.Unit, or iterable of str or pint.Unit
210
210
Units of each of the input arguments. Use `None` to skip argument conversion.
211
211
strict : bool
212
212
Indicates that only quantities are accepted. (Default value = True)
@@ -220,7 +220,7 @@ def wraps(
220
220
------
221
221
TypeError
222
222
if the number of given arguments does not match the number of function parameters.
223
- if the any of the provided arguments is not a unit a string or Quantity
223
+ if any of the provided arguments is not a unit a string or Quantity
224
224
225
225
"""
226
226
0 commit comments