From e4e31978bae7e45be57b376415a4b925ac8cbc03 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Thu, 5 Sep 2024 00:17:35 -0700 Subject: [PATCH] fix linting --- kennel/engine/systems/network.py | 2 +- kennel/kennel.py | 2 +- kennel/main.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/kennel/engine/systems/network.py b/kennel/engine/systems/network.py index d1542e9..693e1bc 100644 --- a/kennel/engine/systems/network.py +++ b/kennel/engine/systems/network.py @@ -1,7 +1,7 @@ import asyncio from abc import abstractmethod from enum import Enum -from typing import List, Optional, Dict +from typing import Dict, List, Optional from kennel.app import logger from kennel.engine.entities.entity import Entity, EntityManager diff --git a/kennel/kennel.py b/kennel/kennel.py index 6852e4c..b4d7b7b 100644 --- a/kennel/kennel.py +++ b/kennel/kennel.py @@ -9,9 +9,9 @@ from kennel.engine.game import Game from kennel.engine.systems.network import ( EntityPositionUpdateEvent, Event, - UpstreamEventProcessor, EventType, NetworkSystem, + UpstreamEventProcessor, ) from kennel.engine.systems.system import SystemManager from kennel.engine.systems.world import WorldSystem diff --git a/kennel/main.py b/kennel/main.py index 0808eb5..22d3d39 100644 --- a/kennel/main.py +++ b/kennel/main.py @@ -1,6 +1,6 @@ import asyncio import uuid -from typing import Annotated, Optional, List +from typing import Annotated, List, Optional from fastapi import ( Cookie, @@ -92,7 +92,6 @@ async def websocket_endpoint( session: Annotated[str, Depends(get_cookie_or_token)], ): await websocket.accept() - client = WebSocketClient(websocket) logger.info(f"Websocket connection established for session {session}") session_entities = create_session_controllable_entities(session)