Skip to content

Commit

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

Fixes #259.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Nov 14, 2023
1 parent 5189458 commit 8d638b1
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 8d638b1

Please sign in to comment.