Skip to content

Commit

Permalink
Restore default for column_valued name parameter
Browse files Browse the repository at this point in the history
Commit 20436f7 (sqlalchemy#258) incorrectly
removed this default, which is needed to accept calls without a name,
i.e., .column_valued().

Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Nov 13, 2023
1 parent 5189458 commit cf08688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlalchemy-stubs/sql/functions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class FunctionElement( # type: ignore[misc]
) -> ScalarFunctionColumn[_TE]: ...
def table_valued(self, *expr: Any, **kw: Any) -> TableValuedAlias: ... # type: ignore[override]
def column_valued(
self, name: Optional[Any], joins_implicitly: bool = False
self, name: Optional[Any] = ..., joins_implicitly: bool = False
) -> TableValuedColumn[Any]: ...
@property
def columns(self) -> ColumnCollection[ColumnElement[Any]]: ... # type: ignore[override]
Expand Down

0 comments on commit cf08688

Please sign in to comment.