Skip to content

Commit e9f733c

Browse files
committed
fix typing
1 parent c2d27bd commit e9f733c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/epidemik/EpiModel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import matplotlib.pyplot as plt
2020
import yaml
2121

22+
from typing import Union
23+
2224
from .utils import *
2325

2426

src/epidemik/MetaEpiModel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import matplotlib.patches as mpatches
1313
from matplotlib.collections import PatchCollection
1414

15+
from typing import Union
16+
1517
from .EpiModel import *
1618

1719
from tqdm import tqdm
@@ -30,7 +32,7 @@ def __init__(
3032
travel_graph: pd.DataFrame,
3133
populations: pd.DataFrame,
3234
population: str = "Population",
33-
seed: int | None = None,
35+
seed: Union[int | None] = None,
3436
):
3537
"""
3638
Initialize the EpiModel object

0 commit comments

Comments
 (0)