Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add TYPE_CHECKING guard for numpy.typing (#2208)
* The addition of typing.TYPE_CHECKING avoids situations in which the version of NumPy (whose lower bounds is enforced by SciPy) doesn't have numpy.typing, which was added in NumPy v1.21.0. * Exclude lines that match 'if TYPE_CHECKING:' from the coverage report to avoid artificial drops in code coverage. - c.f. https://coverage.readthedocs.io/en/stable/excluding.html#advanced-exclusion Co-authored-by: Giordon Stark <kratsg@gmail.com>
- Loading branch information