From 0de11abfa8f97bf3825ee5397adf3b9677fa23dc Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 6 Nov 2020 21:17:31 +0100 Subject: [PATCH] Fix circulary import --- dungeonbattle/display/display.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dungeonbattle/display/display.py b/dungeonbattle/display/display.py index c21db74..d58b772 100644 --- a/dungeonbattle/display/display.py +++ b/dungeonbattle/display/display.py @@ -3,11 +3,11 @@ from typing import Any from .mapdisplay import MapDisplay from .texturepack import TexturePack -from ..game import Game class Display: - def __init__(self, game: Game, screen: Any): + # game is a game, can't import to avoid circulary includes + def __init__(self, game: Any, screen: Any): self.screen = screen self.game = game lines = curses.LINES if screen else 4