Skip to content

Commit b845b35

Browse files
Narwhal-fishevertlammerts
authored andcommitted
Fix : aggregate method typing to accept list of expressions
1 parent 888fa04 commit b845b35

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

_duckdb-stubs/__init__.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,9 @@ class DuckDBPyRelation:
461461
def __getattr__(self, name: str) -> DuckDBPyRelation: ...
462462
def __getitem__(self, name: str) -> DuckDBPyRelation: ...
463463
def __len__(self) -> int: ...
464-
def aggregate(self, aggr_expr: Expression | str, group_expr: Expression | str = "") -> DuckDBPyRelation: ...
464+
def aggregate(
465+
self, aggr_expr: Expression | str | list[Expression], group_expr: Expression | str = ""
466+
) -> DuckDBPyRelation: ...
465467
def any_value(
466468
self, column: str, groups: str = "", window_spec: str = "", projected_columns: str = ""
467469
) -> DuckDBPyRelation: ...

0 commit comments

Comments
 (0)