ContextLab / hypertools

A Python toolbox for gaining geometric insights into high-dimensional data
http://hypertools.readthedocs.io/en/latest/
MIT License
1.83k stars 160 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.