@@ -2545,7 +2545,10 @@ def join(
25452545 sort : bool = False ,
25462546 block_identity_join : bool = False ,
25472547 always_order : bool = False ,
2548- ) -> Tuple [Block , Tuple [Mapping [str , str ], Mapping [str , str ]],]:
2548+ ) -> Tuple [
2549+ Block ,
2550+ Tuple [Mapping [str , str ], Mapping [str , str ]],
2551+ ]:
25492552 """
25502553 Join two blocks objects together, and provide mappings between source columns and output columns.
25512554
@@ -2794,7 +2797,9 @@ def _is_monotonic(
27942797 block = block .drop_columns ([equal_monotonic_id , strict_monotonic_id ])
27952798
27962799 block , monotonic_result_id = block .apply_binary_op (
2797- last_result_id , last_notna_id , ops .and_op # type: ignore
2800+ last_result_id ,
2801+ last_notna_id ,
2802+ ops .and_op , # type: ignore
27982803 )
27992804 if last_result_id is not None :
28002805 block = block .drop_columns ([last_result_id , last_notna_id ])
@@ -2963,7 +2968,12 @@ def is_uniquely_named(self: BlockIndexProperties):
29632968
29642969def try_new_row_join (
29652970 left : Block , right : Block
2966- ) -> Optional [Tuple [Block , Tuple [Mapping [str , str ], Mapping [str , str ]],]]:
2971+ ) -> Optional [
2972+ Tuple [
2973+ Block ,
2974+ Tuple [Mapping [str , str ], Mapping [str , str ]],
2975+ ]
2976+ ]:
29672977 join_keys = tuple (
29682978 (left_id , right_id )
29692979 for left_id , right_id in zip (left .index_columns , right .index_columns )
@@ -2994,7 +3004,12 @@ def try_legacy_row_join(
29943004 right : Block ,
29953005 * ,
29963006 how = "left" ,
2997- ) -> Optional [Tuple [Block , Tuple [Mapping [str , str ], Mapping [str , str ]],]]:
3007+ ) -> Optional [
3008+ Tuple [
3009+ Block ,
3010+ Tuple [Mapping [str , str ], Mapping [str , str ]],
3011+ ]
3012+ ]:
29983013 """Joins two blocks that have a common root expression by merging the projections."""
29993014 left_expr = left .expr
30003015 right_expr = right .expr
@@ -3048,7 +3063,10 @@ def try_legacy_row_join(
30483063def join_with_single_row (
30493064 left : Block ,
30503065 single_row_block : Block ,
3051- ) -> Tuple [Block , Tuple [Mapping [str , str ], Mapping [str , str ]],]:
3066+ ) -> Tuple [
3067+ Block ,
3068+ Tuple [Mapping [str , str ], Mapping [str , str ]],
3069+ ]:
30523070 """
30533071 Special join case where other is a single row block.
30543072 This property is not validated, caller responsible for not passing multi-row block.
@@ -3083,7 +3101,10 @@ def join_mono_indexed(
30833101 how = "left" ,
30843102 sort : bool = False ,
30853103 propogate_order : bool = False ,
3086- ) -> Tuple [Block , Tuple [Mapping [str , str ], Mapping [str , str ]],]:
3104+ ) -> Tuple [
3105+ Block ,
3106+ Tuple [Mapping [str , str ], Mapping [str , str ]],
3107+ ]:
30873108 left_expr = left .expr
30883109 right_expr = right .expr
30893110
@@ -3130,7 +3151,10 @@ def join_multi_indexed(
31303151 how = "left" ,
31313152 sort : bool = False ,
31323153 propogate_order : bool = False ,
3133- ) -> Tuple [Block , Tuple [Mapping [str , str ], Mapping [str , str ]],]:
3154+ ) -> Tuple [
3155+ Block ,
3156+ Tuple [Mapping [str , str ], Mapping [str , str ]],
3157+ ]:
31343158 if not (left .index .is_uniquely_named () and right .index .is_uniquely_named ()):
31353159 raise ValueError ("Joins not supported on indices with non-unique level names" )
31363160
0 commit comments