title: Problems with subclasses, unexpected arguments and unsolved references
body: <p>So I'm trying to make an endless text adventure game (using help from <a href="http://letstalkdata.com/2014/08/how-to-write-a-text-adventure-in-python-part-1-items-and-enemies/" rel="nofollow noreferrer">this</a> site), but I'm having some problems with my classes:</p>
  
  <pre><code>class Item:
  def __init__(self, name, desc, usable, value):
      self.name = name
      self.desc = desc
      self.usable = usable
      self.value = value
  
  def __str__(self):
  
      return "{}\n=====\n{}\nValue: {}\n".format(self.name, self.desc, self.usable, self.value)
  
  
  class Weapon(Item):
  
      def __init__(self, damage):
          self.damage = damage
          super().__init__(desc, name, usable, value)
  
      def __str__(self):
          return "{}\n=====\n{}\nValue: {}\nDamage: {}".format(self.name, self.damage, self.desc, self.usable, self.value)
  
  
  class BrokenSword(Weapon):
  
      def __init__(self):
          super(Weapon, self).__init__(name="Broken Sword",
                                       desc="A sword that didn't resist time.",
                                       value=1,
                                       usable=0,
                                       damage=1)
  </code></pre>
  
  <p>PyCharm states that <code>desc, name, usable</code> and <code>value</code> in the <code>Weapon</code> class (inside <code>super().__init__()</code>) are unsolved references, and that they are unexpected arguments in the <code>BrokenSword(Weapon)</code> class. The code is very similar to the tutorial one, so what is wrong with it? Was the tutorial written in python 2.x? How can I fix my code?</p>