def test_nan_overlap(): a = Bbox([[0, 0], [1, 1]]) b = Bbox([[0, 0], [1, np.nan]]) assert not a.overlaps(b)