Skip to content

Commit

Permalink
Add Optional to type annotation arrival_generator
Browse files Browse the repository at this point in the history
  • Loading branch information
JMGaljaard committed Sep 18, 2022
1 parent 71c9e01 commit 6baa67e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fltk/util/task/generator/arrival_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def stop(self) -> None:
self.alive = False

@abstractmethod
def run(self, duration: float, seed: int) -> None:
def run(self, duration: int, seed: Optional[float] = None) -> None:
"""
Abstract function to run experiment generator for a specified time duration.
@param duration: Time in seconds to run experiment generation.
Expand Down

0 comments on commit 6baa67e

Please sign in to comment.