@@ -515,16 +515,20 @@ def unregister_extension_type(type_name: str) -> None: ...
515515
516516class KeyValueMetadata (_Metadata , Mapping [bytes , bytes ]):
517517
518- def __init__ (self , __arg0__ : Mapping [str | bytes , str | bytes ] | Iterable [tuple [str , str ]] | KeyValueMetadata
519- | None = None , ** kwargs : str ) -> None : ...
518+ def __init__ (
519+ self , __arg0__ : Mapping [str | bytes , str | bytes ]
520+ | Iterable [tuple [str , str ]]
521+ | KeyValueMetadata
522+ | None = None , ** kwargs : str
523+ ) -> None : ...
520524
521525 def equals (self , other : KeyValueMetadata ) -> bool : ...
522526
523527 def __len__ (self ) -> int : ...
524528
525- def __contains__ (self , __key : object ) -> bool : ... # type: ignore[override]
529+ def __contains__ (self , / , __key : object ) -> bool : ... # type: ignore[override]
526530
527- def __getitem__ (self , __key : Any ) -> Any : ... # type: ignore[override]
531+ def __getitem__ (self , / , __key : Any ) -> Any : ... # type: ignore[override]
528532
529533 def __iter__ (self ) -> Iterator [bytes ]: ...
530534
@@ -658,8 +662,11 @@ def unify_schemas(
658662) -> Schema : ...
659663
660664
661- def field (name : SupportArrowSchema | str | Any , type : _DataTypeT | str | None = None , nullable : bool = ...,
662- metadata : dict [Any , Any ] | None = None ) -> Field [_DataTypeT ] | Field [Any ]: ...
665+ def field (
666+ name : SupportArrowSchema | str | Any , type : _DataTypeT | str | None = None ,
667+ nullable : bool = ...,
668+ metadata : dict [Any , Any ] | None = None
669+ ) -> Field [_DataTypeT ] | Field [Any ]: ...
663670
664671
665672def null () -> NullType : ...
@@ -692,7 +699,8 @@ def int64() -> Int64Type: ...
692699def uint64 () -> UInt64Type : ...
693700
694701
695- def timestamp (unit : _Unit | str , tz : _Tz | None = None ) -> TimestampType [_Unit , _Tz ]: ...
702+ def timestamp (
703+ unit : _Unit | str , tz : _Tz | None = None ) -> TimestampType [_Unit , _Tz ]: ...
696704
697705
698706def time32 (unit : _Time32Unit | str ) -> Time32Type [_Time32Unit ]: ...
@@ -789,13 +797,18 @@ def map_(
789797
790798
791799def dictionary (
792- index_type : _IndexT | str , value_type : _BasicValueT | str , ordered : _Ordered | None = None
800+ index_type : _IndexT | str ,
801+ value_type : _BasicValueT | str ,
802+ ordered : _Ordered | None = None
793803) -> DictionaryType [_IndexT , _BasicValueT , _Ordered ]: ...
794804
795805
796806def struct (
797- fields : Iterable [Field [Any ] | tuple [str , Field [Any ] | None ] | tuple [str , DataType | None ]]
798- | Mapping [str , Field [Any ] | DataType | None ],
807+ fields : Iterable [
808+ Field [Any ]
809+ | tuple [str , Field [Any ] | None ]
810+ | tuple [str , DataType | None ]
811+ ] | Mapping [str , Field [Any ] | DataType | None ],
799812) -> StructType : ...
800813
801814
@@ -809,9 +822,9 @@ def dense_union(
809822) -> DenseUnionType : ...
810823
811824
812- def union (child_fields : list [ Field [ Any ]],
813- mode : Literal ["sparse" ] | Literal [ "dense" ] | int | str , # noqa: Y030
814- type_codes : list [int ] | None = None ) -> SparseUnionType | DenseUnionType : ...
825+ def union (
826+ child_fields : list [ Field [ Any ]], mode : Literal ["sparse" | "dense" ] | int | str ,
827+ type_codes : list [int ] | None = None ) -> SparseUnionType | DenseUnionType : ...
815828
816829
817830def run_end_encoded (
@@ -848,7 +861,10 @@ def schema(
848861 | Iterable [tuple [str , DataType | str | None ]]
849862 | Mapping [Any , DataType | str | None ]
850863 ),
851- metadata : Mapping [bytes , bytes ] | Mapping [str , str ] | Mapping [bytes , str ] | Mapping [str , bytes ] | None = None ,
864+ metadata : Mapping [bytes , bytes ]
865+ | Mapping [str , str ]
866+ | Mapping [bytes , str ]
867+ | Mapping [str , bytes ] | None = None ,
852868) -> Schema : ...
853869
854870
0 commit comments