Use `cls` instead of `ApproxNumpyBase`.

Slightly more general, probably doesn't make a difference.
This commit is contained in:
Kale Kundert 2017-07-04 09:20:52 -07:00
parent c111e9dac3
commit 7a1a439049
No known key found for this signature in database
GPG Key ID: C6238221D17CAFAE
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class ApproxNumpyBase(ApproxBase):
assert not isinstance(cls, np.ndarray) assert not isinstance(cls, np.ndarray)
if cls.subclass is None: if cls.subclass is None:
cls.subclass = type('ApproxNumpy', (ApproxNumpyBase, np.ndarray), {}) cls.subclass = type('ApproxNumpy', (cls, np.ndarray), {})
return cls.subclass return cls.subclass