Skip to content

Commit 33e9fd8

Browse files
sync lst builtin fix with 3.10 branch
1 parent 03f915e commit 33e9fd8

1 file changed

Lines changed: 1 addition & 23 deletions

File tree

_duckdb-stubs/__init__.pyi

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,10 @@ if typing.TYPE_CHECKING:
1010
import polars
1111
import pandas
1212
import pyarrow.lib
13+
from builtins import list as lst
1314
from collections.abc import Callable, Iterable, Sequence
1415
from ._typing import ParquetFieldIdsType, IntoExpr, IntoExprColumn
1516
from duckdb import sqltypes, func
16-
from builtins import list as lst # needed to avoid mypy error on DuckDBPyRelation.list method shadowing
17-
18-
# the field_ids argument to to_parquet and write_parquet has a recursive structure
19-
ParquetFieldIdsType = Mapping[str, int | "ParquetFieldIdsType"]
20-
21-
_ExpressionLike: typing.TypeAlias = (
22-
"Expression"
23-
| str
24-
| int
25-
| float
26-
| bool
27-
| bytes
28-
| None
29-
| datetime.date
30-
| datetime.datetime
31-
| datetime.time
32-
| datetime.timedelta
33-
| decimal.Decimal
34-
| uuid.UUID
35-
)
3617

3718
__all__: lst[str] = [
3819
"BinderException",
@@ -692,9 +673,6 @@ class DuckDBPyRelation:
692673
def rank_dense(self, window_spec: str, projected_columns: str = "") -> DuckDBPyRelation: ...
693674
def row_number(self, window_spec: str, projected_columns: str = "") -> DuckDBPyRelation: ...
694675
def select(self, *args: IntoExpr, groups: str = "") -> DuckDBPyRelation: ...
695-
def select_dtypes(self, types: list[sqltypes.DuckDBPyType | str]) -> DuckDBPyRelation: ...
696-
def select_types(self, types: list[sqltypes.DuckDBPyType | str]) -> DuckDBPyRelation: ...
697-
def select(self, *args: _ExpressionLike, groups: str = "") -> DuckDBPyRelation: ...
698676
def select_dtypes(self, types: lst[sqltypes.DuckDBPyType | str]) -> DuckDBPyRelation: ...
699677
def select_types(self, types: lst[sqltypes.DuckDBPyType | str]) -> DuckDBPyRelation: ...
700678
def set_alias(self, alias: str) -> DuckDBPyRelation: ...

0 commit comments

Comments
 (0)