Fix circulary import

This commit is contained in:
Yohann D'ANELLO 2020-11-06 21:17:31 +01:00
parent 0bd26a1bd0
commit 0de11abfa8
1 changed files with 2 additions and 2 deletions

View File

@ -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