diff --git a/src/custom_types.py b/src/custom_types.py index 7b7800f8a..f9083943a 100644 --- a/src/custom_types.py +++ b/src/custom_types.py @@ -8,7 +8,7 @@ class Placement(TypedDict): word: str direction: str pos: Tuple[int] - intersections: Union[List[...], List[Tuple[int]]] + intersections: Union[List[None], List[Tuple[int]]] class CrosswordData(TypedDict): '''The JSON serialised definitions and info of a base crossword.''' diff --git a/src/cword_gen.py b/src/cword_gen.py index 438616382..724b9b1f8 100644 --- a/src/cword_gen.py +++ b/src/cword_gen.py @@ -148,7 +148,7 @@ def _find_intersections(self, direction: str, row: int, column: int - ) -> Union[Tuple[...], Tuple[int]]: + ) -> Union[Tuple[None], Tuple[int]]: '''Find the row and column of all points of intersection that the `word` has with the `self.grid`.''' intersections = list()