@@ -19,7 +19,8 @@ if typing.TYPE_CHECKING:
1919 PythonLiteral ,
2020 IntoValues ,
2121 IntoDType ,
22- IntoNestedDType ,
22+ IntoFields ,
23+ JoinType ,
2324 )
2425 from duckdb import sqltypes , func
2526
@@ -447,17 +448,17 @@ class DuckDBPyConnection:
447448 def register_filesystem (self , filesystem : fsspec .AbstractFileSystem ) -> None : ...
448449 def remove_function (self , name : str ) -> DuckDBPyConnection : ...
449450 def rollback (self ) -> DuckDBPyConnection : ...
450- def row_type (self , fields : IntoNestedDType ) -> sqltypes .DuckDBPyType : ...
451+ def row_type (self , fields : IntoFields ) -> sqltypes .DuckDBPyType : ...
451452 def sql (self , query : Statement | str , * , alias : str = "" , params : object = None ) -> DuckDBPyRelation : ...
452453 def sqltype (self , type_str : str ) -> sqltypes .DuckDBPyType : ...
453454 def string_type (self , collation : str = "" ) -> sqltypes .DuckDBPyType : ...
454- def struct_type (self , fields : IntoNestedDType ) -> sqltypes .DuckDBPyType : ...
455+ def struct_type (self , fields : IntoFields ) -> sqltypes .DuckDBPyType : ...
455456 def table (self , table_name : str ) -> DuckDBPyRelation : ...
456457 def table_function (self , name : str , parameters : object = None ) -> DuckDBPyRelation : ...
457458 def tf (self ) -> dict [str , typing .Any ]: ...
458459 def torch (self ) -> dict [str , typing .Any ]: ...
459460 def type (self , type_str : str ) -> sqltypes .DuckDBPyType : ...
460- def union_type (self , members : IntoNestedDType ) -> sqltypes .DuckDBPyType : ...
461+ def union_type (self , members : IntoFields ) -> sqltypes .DuckDBPyType : ...
461462 def unregister (self , view_name : str ) -> DuckDBPyConnection : ...
462463 def unregister_filesystem (self , name : str ) -> None : ...
463464 def values (self , * args : IntoValues ) -> DuckDBPyRelation : ...
@@ -571,12 +572,7 @@ class DuckDBPyRelation:
571572 def insert (self , values : lst [object ]) -> None : ...
572573 def insert_into (self , table_name : str ) -> None : ...
573574 def intersect (self , other_rel : Self ) -> DuckDBPyRelation : ...
574- def join (
575- self ,
576- other_rel : Self ,
577- condition : IntoExprColumn ,
578- how : typing .Literal ["inner" , "left" , "right" , "outer" , "semi" , "anti" ] = "inner" ,
579- ) -> DuckDBPyRelation : ...
575+ def join (self , other_rel : Self , condition : IntoExprColumn , how : JoinType = "inner" ) -> DuckDBPyRelation : ...
580576 def lag (
581577 self ,
582578 expression : str ,
@@ -1391,7 +1387,7 @@ def register_filesystem(
13911387) -> None : ...
13921388def remove_function (name : str , * , connection : DuckDBPyConnection | None = None ) -> DuckDBPyConnection : ...
13931389def rollback (* , connection : DuckDBPyConnection | None = None ) -> DuckDBPyConnection : ...
1394- def row_type (fields : IntoNestedDType , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
1390+ def row_type (fields : IntoFields , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
13951391def rowcount (* , connection : DuckDBPyConnection | None = None ) -> int : ...
13961392def set_default_connection (connection : DuckDBPyConnection ) -> None : ...
13971393def sql (
@@ -1403,7 +1399,7 @@ def sql(
14031399) -> DuckDBPyRelation : ...
14041400def sqltype (type_str : str , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
14051401def string_type (collation : str = "" , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
1406- def struct_type (fields : IntoNestedDType , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
1402+ def struct_type (fields : IntoFields , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
14071403def table (table_name : str , * , connection : DuckDBPyConnection | None = None ) -> DuckDBPyRelation : ...
14081404def table_function (
14091405 name : str ,
@@ -1415,7 +1411,7 @@ def tf(*, connection: DuckDBPyConnection | None = None) -> dict[str, typing.Any]
14151411def tokenize (query : str ) -> lst [tuple [int , token_type ]]: ...
14161412def torch (* , connection : DuckDBPyConnection | None = None ) -> dict [str , typing .Any ]: ...
14171413def type (type_str : str , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
1418- def union_type (members : IntoNestedDType , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
1414+ def union_type (members : IntoFields , * , connection : DuckDBPyConnection | None = None ) -> sqltypes .DuckDBPyType : ...
14191415def unregister (view_name : str , * , connection : DuckDBPyConnection | None = None ) -> DuckDBPyConnection : ...
14201416def unregister_filesystem (name : str , * , connection : DuckDBPyConnection | None = None ) -> None : ...
14211417def values (* args : IntoValues , connection : DuckDBPyConnection | None = None ) -> DuckDBPyRelation : ...
0 commit comments