Skip to content

sqlalchemy Engine and Connection should be subclasses of Connectable #1018

Closed

Description

@Stiivi

The following code:

import sqlalchemy

connectable: sqlalchemy.engine.base.Connectable
engine: sqlalchemy.engine.base.Engine

connectable = engine

Gives error: Incompatible types in assignment (expression has type "Engine", variable has type "Connectable")

According to the documentation:

The two implementations of Connectable are Connection and Engine

Tested on Python 3.6.

Activity

  1. JelleZijlstra commented on Mar 28, 2017

    @JelleZijlstra
    Member

    We removed the SQLAlchemy stubs, so this is no longer applicable to typeshed. I think it's already fixed in my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions