@@ -18,9 +18,9 @@ if typing.TYPE_CHECKING:
1818 IntoExprColumn ,
1919 PythonLiteral ,
2020 IntoValues ,
21- IntoDType ,
21+ IntoPyType ,
2222 IntoFields ,
23- StrIntoDType ,
23+ StrIntoPyType ,
2424 JoinType ,
2525 JsonCompression ,
2626 JsonFormat ,
@@ -210,7 +210,7 @@ class DuckDBPyConnection:
210210 def __enter__ (self ) -> Self : ...
211211 def __exit__ (self , exc_type : object , exc : object , traceback : object ) -> None : ...
212212 def append (self , table_name : str , df : pandas .DataFrame , * , by_name : bool = False ) -> DuckDBPyConnection : ...
213- def array_type (self , type : IntoDType , size : typing .SupportsInt ) -> sqltypes .DuckDBPyType : ...
213+ def array_type (self , type : IntoPyType , size : typing .SupportsInt ) -> sqltypes .DuckDBPyType : ...
214214 def arrow (self , rows_per_batch : typing .SupportsInt = 1000000 ) -> pyarrow .lib .RecordBatchReader :
215215 """Alias of to_arrow_reader(). We recommend using to_arrow_reader() instead."""
216216 ...
@@ -224,8 +224,8 @@ class DuckDBPyConnection:
224224 self ,
225225 name : str ,
226226 function : Callable [..., PythonLiteral ],
227- parameters : lst [IntoDType ] | None = None ,
228- return_type : IntoDType | None = None ,
227+ parameters : lst [IntoPyType ] | None = None ,
228+ return_type : IntoPyType | None = None ,
229229 * ,
230230 type : func .PythonUDFType = ...,
231231 null_handling : func .FunctionNullHandling = ...,
@@ -235,7 +235,7 @@ class DuckDBPyConnection:
235235 def cursor (self ) -> DuckDBPyConnection : ...
236236 def decimal_type (self , width : typing .SupportsInt , scale : typing .SupportsInt ) -> sqltypes .DuckDBPyType : ...
237237 def df (self , * , date_as_object : bool = False ) -> pandas .DataFrame : ...
238- def dtype (self , type_str : StrIntoDType ) -> sqltypes .DuckDBPyType : ...
238+ def dtype (self , type_str : StrIntoPyType ) -> sqltypes .DuckDBPyType : ...
239239 def duplicate (self ) -> DuckDBPyConnection : ...
240240 def enum_type (self , name : str , type : sqltypes .DuckDBPyType , values : lst [typing .Any ]) -> sqltypes .DuckDBPyType : ...
241241 def execute (self , query : Statement | str , parameters : object = None ) -> DuckDBPyConnection : ...
@@ -285,7 +285,7 @@ class DuckDBPyConnection:
285285 names : lst [str ] | None = None ,
286286 lineterminator : str | None = None ,
287287 columns : ColumnsTypes | None = None ,
288- auto_type_candidates : lst [StrIntoDType ] | None = None ,
288+ auto_type_candidates : lst [StrIntoPyType ] | None = None ,
289289 max_line_size : int | None = None ,
290290 ignore_errors : bool | None = None ,
291291 store_rejects : bool | None = None ,
@@ -344,9 +344,9 @@ class DuckDBPyConnection:
344344 def disable_profiling (self ) -> None : ...
345345 def interrupt (self ) -> None : ...
346346 def list_filesystems (self ) -> lst [str ]: ...
347- def list_type (self , type : IntoDType ) -> sqltypes .DuckDBPyType : ...
347+ def list_type (self , type : IntoPyType ) -> sqltypes .DuckDBPyType : ...
348348 def load_extension (self , extension : str ) -> None : ...
349- def map_type (self , key : IntoDType , value : IntoDType ) -> sqltypes .DuckDBPyType : ...
349+ def map_type (self , key : IntoPyType , value : IntoPyType ) -> sqltypes .DuckDBPyType : ...
350350 @typing .overload
351351 def pl (
352352 self , rows_per_batch : typing .SupportsInt = 1000000 , * , lazy : typing .Literal [False ] = ...
@@ -386,7 +386,7 @@ class DuckDBPyConnection:
386386 names : lst [str ] | None = None ,
387387 lineterminator : str | None = None ,
388388 columns : ColumnsTypes | None = None ,
389- auto_type_candidates : lst [StrIntoDType ] | None = None ,
389+ auto_type_candidates : lst [StrIntoPyType ] | None = None ,
390390 max_line_size : int | None = None ,
391391 ignore_errors : bool | None = None ,
392392 store_rejects : bool | None = None ,
@@ -679,8 +679,8 @@ class DuckDBPyRelation:
679679 def rank_dense (self , window_spec : str , projected_columns : str = "" ) -> DuckDBPyRelation : ...
680680 def row_number (self , window_spec : str , projected_columns : str = "" ) -> DuckDBPyRelation : ...
681681 def select (self , * args : IntoExpr , groups : str = "" ) -> DuckDBPyRelation : ...
682- def select_dtypes (self , types : lst [sqltypes .DuckDBPyType | StrIntoDType ]) -> DuckDBPyRelation : ...
683- def select_types (self , types : lst [sqltypes .DuckDBPyType | StrIntoDType ]) -> DuckDBPyRelation : ...
682+ def select_dtypes (self , types : lst [sqltypes .DuckDBPyType | StrIntoPyType ]) -> DuckDBPyRelation : ...
683+ def select_types (self , types : lst [sqltypes .DuckDBPyType | StrIntoPyType ]) -> DuckDBPyRelation : ...
684684 def set_alias (self , alias : str ) -> DuckDBPyRelation : ...
685685 def show (
686686 self ,
@@ -1033,7 +1033,7 @@ def append(
10331033 table_name : str , df : pandas .DataFrame , * , by_name : bool = False , connection : DuckDBPyConnection | None = None
10341034) -> DuckDBPyConnection : ...
10351035def array_type (
1036- type : IntoDType , size : typing .SupportsInt , * , connection : DuckDBPyConnection | None = None
1036+ type : IntoPyType , size : typing .SupportsInt , * , connection : DuckDBPyConnection | None = None
10371037) -> sqltypes .DuckDBPyType : ...
10381038@typing .overload
10391039def arrow (
@@ -1062,8 +1062,8 @@ def connect(
10621062def create_function (
10631063 name : str ,
10641064 function : Callable [..., PythonLiteral ],
1065- parameters : lst [IntoDType ] | None = None ,
1066- return_type : IntoDType | None = None ,
1065+ parameters : lst [IntoPyType ] | None = None ,
1066+ return_type : IntoPyType | None = None ,
10671067 * ,
10681068 type : func .PythonUDFType = ...,
10691069 null_handling : func .FunctionNullHandling = ...,
@@ -1084,7 +1084,7 @@ def df(*, date_as_object: bool = False, connection: DuckDBPyConnection | None =
10841084@typing .overload
10851085def df (df : pandas .DataFrame , * , connection : DuckDBPyConnection | None = None ) -> DuckDBPyRelation : ...
10861086def distinct (df : pandas .DataFrame , * , connection : DuckDBPyConnection | None = None ) -> DuckDBPyRelation : ...
1087- def dtype (type_str : StrIntoDType , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
1087+ def dtype (type_str : StrIntoPyType , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
10881088def duplicate (* , connection : DuckDBPyConnection | None = None ) -> DuckDBPyConnection : ...
10891089def enum_type (
10901090 name : str ,
@@ -1172,7 +1172,7 @@ def from_csv_auto(
11721172 names : lst [str ] | None = None ,
11731173 lineterminator : str | None = None ,
11741174 columns : ColumnsTypes | None = None ,
1175- auto_type_candidates : lst [StrIntoDType ] | None = None ,
1175+ auto_type_candidates : lst [StrIntoPyType ] | None = None ,
11761176 max_line_size : int | None = None ,
11771177 ignore_errors : bool | None = None ,
11781178 store_rejects : bool | None = None ,
@@ -1246,10 +1246,10 @@ def get_profiling_information(*, connection: DuckDBPyConnection | None = None, f
12461246def enable_profiling (* , connection : DuckDBPyConnection | None = None ) -> None : ...
12471247def disable_profiling (* , connection : DuckDBPyConnection | None = None ) -> None : ...
12481248def list_filesystems (* , connection : DuckDBPyConnection | None = None ) -> lst [str ]: ...
1249- def list_type (type : IntoDType , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
1249+ def list_type (type : IntoPyType , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
12501250def load_extension (extension : str , * , connection : DuckDBPyConnection | None = None ) -> None : ...
12511251def map_type (
1252- key : IntoDType , value : IntoDType , * , connection : DuckDBPyConnection | None = None
1252+ key : IntoPyType , value : IntoPyType , * , connection : DuckDBPyConnection | None = None
12531253) -> sqltypes .DuckDBPyType : ...
12541254def order (
12551255 df : pandas .DataFrame , order_expr : str , * , connection : DuckDBPyConnection | None = None
@@ -1319,7 +1319,7 @@ def read_csv(
13191319 names : lst [str ] | None = None ,
13201320 lineterminator : str | None = None ,
13211321 columns : ColumnsTypes | None = None ,
1322- auto_type_candidates : lst [StrIntoDType ] | None = None ,
1322+ auto_type_candidates : lst [StrIntoPyType ] | None = None ,
13231323 max_line_size : int | None = None ,
13241324 ignore_errors : bool | None = None ,
13251325 store_rejects : bool | None = None ,
0 commit comments