@@ -597,9 +597,7 @@ def _parse_get_trace_props(
597597 hf_y = (
598598 trace ["y" ]
599599 if hasattr (trace , "y" ) and hf_y is None
600- else hf_y .values
601- if isinstance (hf_y , (pd .Series , pd .Index ))
602- else hf_y
600+ else hf_y .values if isinstance (hf_y , (pd .Series , pd .Index )) else hf_y
603601 )
604602 # NOTE: the if will not be triggered for a categorical series its values
605603 if not hasattr (hf_y , "dtype" ):
@@ -608,17 +606,21 @@ def _parse_get_trace_props(
608606 hf_text = (
609607 hf_text
610608 if hf_text is not None
611- else trace ["text" ]
612- if hasattr (trace , "text" ) and trace ["text" ] is not None
613- else None
609+ else (
610+ trace ["text" ]
611+ if hasattr (trace , "text" ) and trace ["text" ] is not None
612+ else None
613+ )
614614 )
615615
616616 hf_hovertext = (
617617 hf_hovertext
618618 if hf_hovertext is not None
619- else trace ["hovertext" ]
620- if hasattr (trace , "hovertext" ) and trace ["hovertext" ] is not None
621- else None
619+ else (
620+ trace ["hovertext" ]
621+ if hasattr (trace , "hovertext" ) and trace ["hovertext" ] is not None
622+ else None
623+ )
622624 )
623625
624626 hf_marker_size = (
@@ -1114,9 +1116,11 @@ def add_traces(
11141116
11151117 # Convert each trace into a BaseTraceType object
11161118 data = [
1117- self ._data_validator .validate_coerce (trace )[0 ]
1118- if not isinstance (trace , BaseTraceType )
1119- else trace
1119+ (
1120+ self ._data_validator .validate_coerce (trace )[0 ]
1121+ if not isinstance (trace , BaseTraceType )
1122+ else trace
1123+ )
11201124 for trace in data
11211125 ]
11221126
@@ -1137,7 +1141,7 @@ def add_traces(
11371141 limit_to_views = [limit_to_views ] * len (data )
11381142
11391143 zipped = zip (data , max_n_samples , downsamplers , gap_handlers , limit_to_views )
1140- for ( i , (trace , max_out , downsampler , gap_handler , limit_to_view ) ) in enumerate (
1144+ for i , (trace , max_out , downsampler , gap_handler , limit_to_view ) in enumerate (
11411145 zipped
11421146 ):
11431147 if (
0 commit comments