title: "MyVar" is not definedPylancereportUndefinedVariable
body: <ul>
  <li><strong>goal</strong>: I am trying to create I, reusable class, for Django and I created a variable called <code>MyVar</code> inside it in order to overwrite it later when I re-use this class <code>ItemsView</code>.</li>
  <li><strong>Problem</strong>: when i use <code>MyVar</code> inside MySerializer it says <code>&quot;MyVar&quot; is not definde</code></li>
  </ul>
  <pre><code>class ItemsView(OtherClass):
      MyVar = 'any ...'
  
      class MySerializer(OneMoreClasse):
          class Meta:
              model = MyVar
              fields = '__all__'
  </code></pre>