Skip to content

Commit 3101cdc

Browse files
committed
improve type hints
1 parent 8579a14 commit 3101cdc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

causalpy/experiments/synthetic_control.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Synthetic Control Experiment
1616
"""
1717

18-
from typing import List, Union
18+
from typing import List, Optional, Union
1919

2020
import arviz as az
2121
import numpy as np
@@ -561,7 +561,9 @@ def get_plot_data_bayesian(
561561

562562
return self.plot_data
563563

564-
def _get_score_title(self, treated_unit: str, round_to=None):
564+
def _get_score_title(
565+
self, treated_unit: str, round_to: Optional[int] = None
566+
) -> str:
565567
"""Generate appropriate score title for the specified treated unit"""
566568
if isinstance(self.model, PyMCModel):
567569
# Bayesian model - get unit-specific R² scores using unified format

0 commit comments

Comments
 (0)