summaryrefslogtreecommitdiff
path: root/pint/numpy_func.py
diff options
context:
space:
mode:
authorHernan <hernan.grecco@gmail.com>2021-01-07 02:25:28 -0300
committerHernan <hernan.grecco@gmail.com>2021-01-07 02:25:28 -0300
commita750205ae10c5c2c0247668279330f10659ed02b (patch)
tree904990ccc2b86b714343bbc9d0be477bff9f7da9 /pint/numpy_func.py
parent726e7ef5d5ce9d5ff695f5eddb0a6c944f81f558 (diff)
downloadpint-a750205ae10c5c2c0247668279330f10659ed02b.tar.gz
Run linter on all files
Diffstat (limited to 'pint/numpy_func.py')
-rw-r--r--pint/numpy_func.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pint/numpy_func.py b/pint/numpy_func.py
index 0f220b0..0aaf65f 100644
--- a/pint/numpy_func.py
+++ b/pint/numpy_func.py
@@ -59,8 +59,7 @@ def _is_sequence_with_quantity_elements(obj):
def _get_first_input_units(args, kwargs=None):
- """Obtain the first valid unit from a collection of args and kwargs.
- """
+ """Obtain the first valid unit from a collection of args and kwargs."""
kwargs = kwargs or {}
for arg in chain(args, kwargs.values()):
if _is_quantity(arg):
@@ -885,8 +884,7 @@ for func_str in ["var", "nanvar"]:
def numpy_wrap(func_type, func, args, kwargs, types):
- """Return the result from a NumPy function/ufunc as wrapped by Pint.
- """
+ """Return the result from a NumPy function/ufunc as wrapped by Pint."""
if func_type == "function":
handled = HANDLED_FUNCTIONS