Skip to content

Commit

Permalink
Fix ConversionError in callback_typecheck. (#1129)
Browse files Browse the repository at this point in the history
* Fix typecheck error

* Updated type hinting and added stretch=True

Co-authored-by: Øyvind Lind-Johansen <[email protected]>
  • Loading branch information
lindjoha and Øyvind Lind-Johansen authored Oct 5, 2022
1 parent 99212d6 commit a077e47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webviz_subsurface/plugins/_well_analysis/_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(
time_index: str = Frequency.YEARLY.value,
filter_out_startswith: Optional[str] = None,
) -> None:
super().__init__()
super().__init__(stretch=True)

self._ensembles = ensembles
self._theme = webviz_settings.theme
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datetime
from typing import Dict, List, Optional, Set, Union
from typing import Any, Dict, List, Optional, Set, Union

import plotly.graph_objects as go
import webviz_core_components as wcc
Expand Down Expand Up @@ -313,7 +313,7 @@ def _update_graph(
charttype_selected: ChartType,
wells_selected: List[str],
checklist_ids: List[Dict[str, str]],
current_fig_dict: Optional[Dict],
current_fig_dict: Optional[Dict[str, Any]],
) -> Component:
"""Updates the well overview graph with selected input (f.ex chart type)"""
ctx = callback_context.triggered[0]["prop_id"].split(".")[0]
Expand Down

0 comments on commit a077e47

Please sign in to comment.