diff --git a/great_tables/_helpers.py b/great_tables/_helpers.py index 8fef0f2eb..be68a246a 100644 --- a/great_tables/_helpers.py +++ b/great_tables/_helpers.py @@ -1375,8 +1375,8 @@ def nanoplot_options( show_reference_area = True if show_reference_area is None else show_reference_area show_vertical_guides = True if show_vertical_guides is None else show_vertical_guides show_y_axis_guide = True if show_y_axis_guide is None else show_y_axis_guide - - interactive_data_values = interactive_data_values or True + + interactive_data_values = True if interactive_data_values is None else interactive_data_values # y_val_fmt_fn, y_axis_fmt_fn, and y_ref_line_fmt_fn # are not assigned to a default value diff --git a/great_tables/_pipe.py b/great_tables/_pipe.py index f7dff7a30..5e9920399 100644 --- a/great_tables/_pipe.py +++ b/great_tables/_pipe.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING, Callable -from typing_extensions import ParamSpec +from typing_extensions import ParamSpec, Concatenate if TYPE_CHECKING: from .gt import GT @@ -10,7 +10,7 @@ P = ParamSpec("P") -def pipe(self: "GT", func: Callable[P, "GT"], *args: P.args, **kwargs: P.kwargs) -> "GT": +def pipe(self: "GT", func: Callable[Concatenate["GT", P], "GT"], *args: P.args, **kwargs: P.kwargs) -> "GT": """ Provide a structured way to chain a function for a GT object.