Skip to content

Commit 66d7fca

Browse files
juanitorduztwiecki
authored andcommitted
fix optional type hints
1 parent 68b133e commit 66d7fca

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

causalpy/plot_utils.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ def plot_xY(
1111
x: Union[pd.DatetimeIndex, np.array],
1212
Y: xr.DataArray,
1313
ax: plt.Axes,
14-
plot_hdi_kwargs: Optional[Dict[str, Any]] = {},
15-
hdi_prob: Optional[float] = 0.94,
16-
include_label: Optional[bool] = True,
14+
plot_hdi_kwargs: Optional[Dict[str, Any]] = None,
15+
hdi_prob: float = 0.94,
16+
include_label: bool = True,
1717
) -> None:
1818
"""Utility function to plot HDI intervals."""
1919

20+
if plot_hdi_kwargs is None:
21+
plot_hdi_kwargs = {}
22+
2023
az.plot_hdi(
2124
x,
2225
Y,

0 commit comments

Comments
 (0)