Skip to content

Commit 97f40ea

Browse files
committed
update type hints
1 parent 2a2811a commit 97f40ea

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

causalpy/pymc_experiments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional, Union
1+
from typing import Union
22

33
import arviz as az
44
import matplotlib.pyplot as plt
@@ -565,7 +565,7 @@ def __init__(
565565
treatment_threshold: float,
566566
model=None,
567567
running_variable_name: str = "x",
568-
epsilon: Optional[float] = 0.001,
568+
epsilon: float | None = 0.001,
569569
**kwargs,
570570
):
571571
super().__init__(model=model, **kwargs)

causalpy/skl_experiments.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import Optional
2-
31
import matplotlib.pyplot as plt
42
import numpy as np
53
import pandas as pd
@@ -372,7 +370,7 @@ def __init__(
372370
treatment_threshold,
373371
model=None,
374372
running_variable_name="x",
375-
epsilon: Optional[float] = 0.001,
373+
epsilon: float | None = 0.001,
376374
**kwargs,
377375
):
378376
super().__init__(model=model, **kwargs)

0 commit comments

Comments
 (0)