Skip to content

Commit

Permalink
Fix lint hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymilne committed Jul 18, 2024
1 parent 525b850 commit 31cee66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vizro-core/src/vizro/models/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ def __init__(self, function, /, *args, **kwargs):
self.__bound_arguments.update(self.__bound_arguments[var_keyword_param])
del self.__bound_arguments[var_keyword_param]

# This is used to check that the mode of the capture decorator matches the inserted captured callable.
# Used in later validations of the captured callable.
self._mode = None
self._model_example = None

def __call__(self, *args, **kwargs):
"""Run the `function` with the initially bound arguments overridden by `**kwargs`.
Expand Down Expand Up @@ -283,7 +284,7 @@ class capture:

def __init__(self, mode: Literal["graph", "action", "table", "ag_grid", "figure"]):
"""Decorator to capture a function call."""
# mode and model are used in later validations of the captured callable.
# mode and model_example are used in later validations of the captured callable.
self._mode = mode
model_examples = {
"graph": "vm.Graph(figure=...)",
Expand Down

0 comments on commit 31cee66

Please sign in to comment.