From 6f1e41ed03a057a0236a36d399df7b5b57c16650 Mon Sep 17 00:00:00 2001 From: Keewis Date: Tue, 24 Dec 2019 00:06:09 +0100 Subject: [PATCH] add a docstring for is_upcast_type --- pint/compat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pint/compat.py b/pint/compat.py index 7264c35d1..25fafc240 100644 --- a/pint/compat.py +++ b/pint/compat.py @@ -147,6 +147,10 @@ def _to_magnitude(value, force_ndarray=False): def is_upcast_type(other): + """ check if the type object is a upcast type + + :param other: type + """ # Check if class name is in preset list return other.__name__ in ("PintArray", "Series", "DataArray")