From 54a6726601a772dc831986b538a9092b27f9d234 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 15 Dec 2019 18:51:27 +0100 Subject: [PATCH] type hint fixes for adaptive/tests/test_triangulation.py --- adaptive/tests/test_triangulation.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/adaptive/tests/test_triangulation.py b/adaptive/tests/test_triangulation.py index 8cfc2ef61..5dcd23e7a 100644 --- a/adaptive/tests/test_triangulation.py +++ b/adaptive/tests/test_triangulation.py @@ -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 @@ -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"""