title: "Inheriting 'Base', which is not a class" in VS Code using SQLAlchemy declarative_base()
body: <p><img src="https://i.imgur.com/4XhHEwJ.jpg" alt="VS code screenshot"></p>
  
  <p>VS Code shows <em>"Inheriting 'Base', which is not a class"</em> as an error message given the below:</p>
  
  <pre><code>from sqlalchemy.ext.declarative import declarative_base
  from sqlalchemy import Integer , String , Column
  
  Base = declarative_base()
  
  class Socio(Base):
  
      __tablename__ = 'socios'
      id = Column(Integer, autoincrement = True , primary_key = True)
      dni = Column(Integer , unique = True)
      nombre = Column(String(250))
      apellido= Column(String(250))
  </code></pre>
  
  <p>Why does this happen? How can I fix it?</p>