From 59f1668364954314916ce1ff2f58c4fd0685b125 Mon Sep 17 00:00:00 2001 From: Hari Date: Wed, 22 Nov 2023 01:38:27 +0100 Subject: [PATCH] typo in typehints --- pathfinding3d/core/world.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pathfinding3d/core/world.py b/pathfinding3d/core/world.py index 08aec32..d497dc7 100644 --- a/pathfinding3d/core/world.py +++ b/pathfinding3d/core/world.py @@ -1,4 +1,4 @@ -from typing import Dict +from typing import Dict, List from .diagonal_movement import DiagonalMovement from .grid import Grid @@ -10,7 +10,7 @@ class World: def __init__(self, grids: Dict[int, Grid]): self.grids = grids - def neighbors(self, node: Node, diagonal_movement: DiagonalMovement) -> list[Node]: + def neighbors(self, node: Node, diagonal_movement: DiagonalMovement) -> List[Node]: """ Get neighbors of the given node.