Python Forum

Full Version: redeclared defined above without usage warning
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here is the code. I use pycharm and I keep getting this warning.

def current_actions(self: object) -> object:
    if self.Enemies.is_alive:
        return [Actions.Flee(), Actions.Attack(enemy=self.enemy)]
    else:
        return self.adjacent_moves()


def intro_text():
    return """
    You leave the room and see light, are you coming out? You are! You get put of the body. You did it!
    """


def modify_player(player):
    """

    :param player:
    """
    player.victory = True


class LeaveStartingRoom:
    pass
redeclared defined above without usage on line 14