Skip to content

Commit

Permalink
type hint fixes for adaptive/tests/test_triangulation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Dec 15, 2019
1 parent e531aea commit 54a6726
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions adaptive/tests/test_triangulation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import itertools
from collections import Counter
from math import factorial
from typing import List, Optional, Tuple, Union
from typing import Optional, Tuple, Union

import numpy as np
import pytest
Expand Down Expand Up @@ -60,20 +60,8 @@ def _check_triangulation_is_valid(t: Triangulation) -> None:

def _add_point_with_check(
tri: Triangulation,
point: Union[
np.ndarray,
Tuple[float, float, float, float],
Tuple[float, float],
List[int],
Tuple[float, float, float],
],
simplex: Optional[
Union[
Tuple[int, int, int, int],
Tuple[int, int, int],
Tuple[int, int, int, int, int],
]
] = None,
point: Union[np.ndarray, Tuple[float, ...]],
simplex: Optional[Tuple[int, ...]] = None,
) -> None:
"""Check that the difference in simplices before and after adding a point
is returned by tri.add_point"""
Expand Down

0 comments on commit 54a6726

Please sign in to comment.