From 8856264ceba1ea2ba05d5e699882d8d854750828 Mon Sep 17 00:00:00 2001 From: Tortar <68152031+Tortar@users.noreply.github.com> Date: Tue, 25 Apr 2023 00:27:42 +0200 Subject: [PATCH] Update space.py --- mesa/space.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mesa/space.py b/mesa/space.py index 8230490b812..ac030ce9f53 100644 --- a/mesa/space.py +++ b/mesa/space.py @@ -858,10 +858,16 @@ class HexGrid(HexSingleGrid): width, height: The grid's width and height. torus: Boolean which determines whether to treat the grid as a torus. """ + def __init__(self, width: int, height: int, torus: bool) -> None: super().__init__(width, height, torus) - warn(("HexGrid is being deprecated; use instead HexSingleGrid or HexMultiGrid " - "depending on your use case."), DeprecationWarning) + warn( + ( + "HexGrid is being deprecated; use instead HexSingleGrid or HexMultiGrid " + "depending on your use case." + ), + DeprecationWarning, + ) class ContinuousSpace: