Python Forum
redeclared defined above without usage warning
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
redeclared defined above without usage warning
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python library not defined in user defined function johnEmScott 2 3,823 May-30-2020, 04:14 AM
Last Post: DT2000

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020