File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -163,9 +163,9 @@ def udf_using_pyarrow_compute_impl(
163163 resultant_arr = pc .and_ (resultant_arr , filtered_returnflag_arr )
164164
165165 if results is None :
166- results = resultant_arr
167- else :
168- results = pc . or_ ( results , resultant_arr )
166+ results = (
167+ resultant_arr if results is None else pc . or_ ( results , resultant_arr )
168+ )
169169
170170 return results
171171
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ ignore = [
101101 " PD901" ,
102102 # "EM102",
103103 " ERA001" ,
104- " SIM108" ,
104+ # "SIM108",
105105 " ICN001" ,
106106 " ANN001" ,
107107 " ANN202" ,
Original file line number Diff line number Diff line change @@ -844,7 +844,7 @@ def register_csv(
844844 file_compression_type: File compression type.
845845 """
846846 if isinstance (path , list ):
847- path = [str (p ) for p in path ]
847+ path = [str (p ) for p in path ] if isinstance ( path , list ) else str ( path )
848848 else :
849849 path = str (path )
850850
You can’t perform that action at this time.
0 commit comments