Skip to content

Commit 93987a4

Browse files
committed
use type hints compatible with python 3.8
1 parent 64df14a commit 93987a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

causalpy/pymc_experiments.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import Union
2+
13
import arviz as az
24
import matplotlib.pyplot as plt
35
import numpy as np
@@ -54,7 +56,7 @@ class TimeSeriesExperiment(ExperimentalDesign):
5456
def __init__(
5557
self,
5658
data: pd.DataFrame,
57-
treatment_time: int | float | pd.Timestamp,
59+
treatment_time: Union[int, float, pd.Timestamp],
5860
formula: str,
5961
model=None,
6062
**kwargs,

0 commit comments

Comments
 (0)