fix: widen JoinType to accept aliased and polymorphic targets (#221)

This commit is contained in:
d3vyce
2026-04-02 22:58:52 +02:00
committed by GitHub
parent 04da241294
commit e388e26858
3 changed files with 155 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ ModelType = TypeVar("ModelType", bound=DeclarativeBase)
SchemaType = TypeVar("SchemaType", bound=BaseModel)
# CRUD type aliases
JoinType = list[tuple[type[DeclarativeBase], Any]]
JoinType = list[tuple[type[DeclarativeBase] | Any, Any]]
M2MFieldType = Mapping[str, QueryableAttribute[Any]]
OrderByClause = ColumnElement[Any] | QueryableAttribute[Any]