Skip to content

Commit fe43106

Browse files
committed
🔍 review code
1 parent 50fadd0 commit fe43106

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

plotly_resampler/figure_resampler/figure_resampler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ def show_dash(
380380
assert "config" not in graph_properties.keys() # There is a param for config
381381

382382
# 0. Check if the traces need to be updated when there is a xrange set
383+
# This will be the case when the users has set a xrange (via the `update_layout`
384+
# or `update_xaxes` methods`)
383385
relayout_dict = {}
384386
for xaxis_str in self._xaxis_list:
385387
x_range = self.layout[xaxis_str].range

plotly_resampler/figure_resampler/figure_resampler_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ def _re_matches(regex: re.Pattern, strings: Iterable[str]) -> List[str]:
12721272
return sorted(matches)
12731273

12741274
@staticmethod
1275-
def _is_no_update(update_data: Union[List[dict], dash.no_update]):
1275+
def _is_no_update(update_data: Union[List[dict], dash.no_update]) -> bool:
12761276
return update_data is dash.no_update
12771277

12781278
## Magic methods (to use plotly.py words :grin:)

0 commit comments

Comments
 (0)