ContextLab / hypertools

A Python toolbox for gaining geometric insights into high-dimensional data
http://hypertools.readthedocs.io/en/latest/
MIT License
1.81k stars 161 forks source link

use isinstance instead of is or == to test for object type compatability #209

Open jeremymanning opened 6 years ago

jeremymanning commented 6 years ago

Our current type checking machinery is not robust to sub-classes. We should instead use isinstance(x, desired_type) for these checks.