You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MNT: explicitly cast np.bool_ -> bool to prevent deprecation warning
This is a workaround to https://bugs.python.org/issue37980
- np.bool raises a warning if you try to use it as an index (by
warning in its `__index__` method
- in py38 python/cpython#11952 python changes
the code path used to convert `np.bool_` -> int for as it is used in
`sorted` so it now goes through the `__index__` code path
- this causes a bunch of spurious warnings to come out of Matplotlib.
0 commit comments