title: How can static method access class variable in Python?
body: <p>This is what my code looks like</p>
  
  <pre><code>class InviteManager():
      ALREADY_INVITED_MESSAGE = "You are already on our invite list"
      INVITE_MESSAGE = "Thank you! we will be in touch soon"
  
      @staticmethod
      @missing_input_not_allowed
      def invite(email):
          try:
              db.session.add(Invite(email))
              db.session.commit()
          except IntegrityError:
              return ALREADY_INVITED_MESSAGE
          return INVITE_MESSAGE
  </code></pre>
  
  <p>When I run my tests, I see</p>
  
  <pre><code>NameError: global name 'INVITE_MESSAGE' is not defined
  </code></pre>
  
  <p>How can I access <code>INVITE_MESSAGE</code> inside <code>@staticmethod</code>?</p>