Skip to content

Commit

Permalink
add a docstring for is_upcast_type
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Dec 23, 2019
1 parent 1740e8b commit 6f1e41e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pint/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 6f1e41e

Please sign in to comment.