Skip to content

Commit

Permalink
linted movement.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lunathanael committed Mar 11, 2024
1 parent 381b8c0 commit ca03d75
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions clash_royale/envs/game_engine/logic/movement.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@

from typing import TYPE_CHECKING

from clash_royale.envs.game_engine.entities.entity import Entity
from clash_royale.envs.game_engine.arena import Arena
from clash_royale.envs.game_engine.utils import slope

if TYPE_CHECKING:
# Only import for typechecking to prevent circular dependency
from clash_royale.envs.game_engine.entities.logic_entity import LogicEntity


Expand All @@ -24,11 +23,11 @@ class BaseMovement:
"""

def __init__(self) -> None:

self.entity: LogicEntity # Entity we are attached to
self.arena: Arena # Arena component to consider

def move(self):
def move(self) -> None:
"""
Moves the entity in some way.
Expand All @@ -44,7 +43,7 @@ class SimpleMovement(BaseMovement):
SimpleMovement - Simply move in a straight line to the target
"""

def move(self):
def move(self) -> None:
"""
Moves in a straight line towards target.
"""
Expand Down

0 comments on commit ca03d75

Please sign in to comment.