Skip to content

create a single common type for SQL expressions, ExpressionRole #8847

Closed
@zzzeek

Description

@zzzeek
Member

Discussed in #8846

we need InstrumentedAttribute and ColumnElement to both come from a common type that meets ExpressionElementRole and SQLCoreOperations, so that functions that deal in SQLAlchemy expression constructs can have a common type.

Activity

added
use casenot really a feature or a bug; can be support for new DB features or user use cases not anticipated
typingpep -484 typing issues. independent of "mypy"
on Nov 19, 2022
added this to the 2.0beta4 milestone on Nov 19, 2022
sqla-tester

sqla-tester commented on Nov 19, 2022

@sqla-tester
Collaborator

Mike Bayer has proposed a fix for this issue in the main branch:

add common base class for all SQL col expression objects https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/4223

added a commit that references this issue on Jun 9, 2025
caa9293
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

    typingpep -484 typing issues. independent of "mypy"use casenot really a feature or a bug; can be support for new DB features or user use cases not anticipated

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zzzeek@sqla-tester

        Issue actions

          create a single common type for SQL expressions, ExpressionRole · Issue #8847 · sqlalchemy/sqlalchemy