title: Pylance reportGeneralyTypeIssues expected class type but received "SQLAlchemy"
body: <p>I am looking for a way to fix this error message from pylance in conjunction with SQLAlchemy in Visual Studio Code. What can I write in a stub file to make this error go away?</p>
  <p><strong>The code</strong></p>
  <pre><code>from flask import Flask, request
  from flask_sqlalchemy import SQLAlchemy
  
  ...
  
  class Post(app_db.Model): # &lt;=== error
      id = app_db.Column(app_db.Integer, primary_key=True)
      title = app_db.Column(app_db.String(50))
  </code></pre>
  <p><strong>The error report:</strong></p>
  <pre><code>{
      &quot;resource&quot;: &quot;/Users/andreclaassen/Projects/notion-automation/notion-kpi/notionkpi/__init__.py&quot;,
      &quot;owner&quot;: &quot;_generated_diagnostic_collection_name_#2&quot;,
      &quot;code&quot;: {
          &quot;value&quot;: &quot;reportGeneralTypeIssues&quot;,
          &quot;target&quot;: {
              &quot;$mid&quot;: 1,
              &quot;external&quot;: &quot;https://github.com/microsoft/pyright/blob/master/docs/configuration.md&quot;,
              &quot;path&quot;: &quot;/microsoft/pyright/blob/master/docs/configuration.md&quot;,
              &quot;scheme&quot;: &quot;https&quot;,
              &quot;authority&quot;: &quot;github.com&quot;
          }
      },
      &quot;severity&quot;: 8,
      &quot;message&quot;: &quot;Expected class type but received \&quot;SQLAlchemy\&quot;&quot;,
      &quot;source&quot;: &quot;Pylance&quot;,
      &quot;startLineNumber&quot;: 23,
      &quot;startColumn&quot;: 12,
      &quot;endLineNumber&quot;: 23,
      &quot;endColumn&quot;: 18
  }
  </code></pre>