Skip to content

Commit 630593f

Browse files
Relation.update set argument can accept a mapping
1 parent 4348df8 commit 630593f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_duckdb-stubs/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if typing.TYPE_CHECKING:
1111
import pandas
1212
import pyarrow.lib
1313
from builtins import list as lst
14-
from collections.abc import Callable, Iterable, Sequence
14+
from collections.abc import Callable, Iterable, Sequence, Mapping
1515
from ._typing import ParquetFieldIdsType, IntoExpr, IntoExprColumn
1616
from duckdb import sqltypes, func
1717

@@ -749,7 +749,7 @@ class DuckDBPyRelation:
749749
def torch(self) -> dict[str, typing.Any]: ...
750750
def union(self, union_rel: DuckDBPyRelation) -> DuckDBPyRelation: ...
751751
def unique(self, unique_aggr: str) -> DuckDBPyRelation: ...
752-
def update(self, set: dict[str, IntoExpr], *, condition: IntoExpr = None) -> None: ...
752+
def update(self, set: Mapping[str, IntoExpr], *, condition: IntoExpr = None) -> None: ...
753753
def value_counts(self, expression: str, groups: str = "") -> DuckDBPyRelation: ...
754754
def var(
755755
self, expression: str, groups: str = "", window_spec: str = "", projected_columns: str = ""

0 commit comments

Comments
 (0)