diff options
author | Alex Watt <alex@alexcwatt.com> | 2019-02-24 20:00:49 -0500 |
---|---|---|
committer | Alex Watt <alex@alexcwatt.com> | 2019-02-24 21:26:37 -0500 |
commit | c458774c637c508f4b1e49ebaa2f85083579fa10 (patch) | |
tree | 952acf081003c330787c53e637673f2c3b1a2564 /numpy/core/getlimits.py | |
parent | 4df5bfd07a5de775c4d6ada5ba267ab3930175bf (diff) | |
download | numpy-c458774c637c508f4b1e49ebaa2f85083579fa10.tar.gz |
MAINT: Convert property to @property
Diffstat (limited to 'numpy/core/getlimits.py')
-rw-r--r-- | numpy/core/getlimits.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/numpy/core/getlimits.py b/numpy/core/getlimits.py index 544b8b35f..31fa6b9bf 100644 --- a/numpy/core/getlimits.py +++ b/numpy/core/getlimits.py @@ -505,6 +505,7 @@ class iinfo(object): if self.kind not in 'iu': raise ValueError("Invalid integer data type %r." % (self.kind,)) + @property def min(self): """Minimum value of given dtype.""" if self.kind == 'u': @@ -517,8 +518,7 @@ class iinfo(object): iinfo._min_vals[self.key] = val return val - min = property(min) - + @property def max(self): """Maximum value of given dtype.""" try: @@ -531,8 +531,6 @@ class iinfo(object): iinfo._max_vals[self.key] = val return val - max = property(max) - def __str__(self): """String representation.""" fmt = ( |