Skip to content

Commit

Permalink
Ignoring warning for type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
tilen1976 committed Jan 11, 2024
1 parent cb25782 commit f2b84ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datadoc/frontend/components/variables_tab_cbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def set_display_variables(selected_variabel: []) -> []:
[Input("submit", "n_clicks")],
[State("collapse", "is_open")],
)
def toggle_accordion(is_open) -> bool: # noqa: ANN001
def toggle_accordion(n_left, is_open) -> bool: # noqa: ANN001
"""Open accordion."""
if n_left:
return not is_open
return is_open

0 comments on commit f2b84ee

Please sign in to comment.