Skip to content

Commit bc673d1

Browse files
values function and Connection method can accept list of Python Literals, not list of Any element
1 parent 630593f commit bc673d1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

_duckdb-stubs/__init__.pyi

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

1818
__all__: lst[str] = [
@@ -458,7 +458,7 @@ class DuckDBPyConnection:
458458
) -> sqltypes.DuckDBPyType: ...
459459
def unregister(self, view_name: str) -> DuckDBPyConnection: ...
460460
def unregister_filesystem(self, name: str) -> None: ...
461-
def values(self, *args: lst[typing.Any] | tuple[Expression, ...] | Expression) -> DuckDBPyRelation: ...
461+
def values(self, *args: lst[PythonLiteral] | tuple[Expression, ...] | Expression) -> DuckDBPyRelation: ...
462462
def view(self, view_name: str) -> DuckDBPyRelation: ...
463463
@property
464464
def description(self) -> lst[tuple[str, sqltypes.DuckDBPyType, None, None, None, None, None]]: ...
@@ -1434,7 +1434,7 @@ def union_type(
14341434
def unregister(view_name: str, *, connection: DuckDBPyConnection | None = None) -> DuckDBPyConnection: ...
14351435
def unregister_filesystem(name: str, *, connection: DuckDBPyConnection | None = None) -> None: ...
14361436
def values(
1437-
*args: lst[typing.Any] | tuple[Expression, ...] | Expression, connection: DuckDBPyConnection | None = None
1437+
*args: lst[PythonLiteral] | tuple[Expression, ...] | Expression, connection: DuckDBPyConnection | None = None
14381438
) -> DuckDBPyRelation: ...
14391439
def view(view_name: str, *, connection: DuckDBPyConnection | None = None) -> DuckDBPyRelation: ...
14401440
def write_csv(

0 commit comments

Comments
 (0)