Use `cls` instead of `ApproxNumpyBase`.
Slightly more general, probably doesn't make a difference.
This commit is contained in:
parent
c111e9dac3
commit
7a1a439049
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue