Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 21, 2024
1 parent 967d219 commit afa3e52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mesa/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,14 @@ def __init__(self, model: Model, agents: Iterable[Agent] | None = None) -> None:
agents (Iterable[Agent], None, optional): An iterable of agents who are controlled by the schedule
"""

warnings.warn(
"The time module and all its Schedulers are deprecated and will be removed in a future version. "
"They can be replaced with AgentSet functionality. See the migration guide for details. "
"https://mesa.readthedocs.io/en/latest/migration_guide.html#time-and-schedulers",
DeprecationWarning,
stacklevel=2,
)

self.model = model
self.steps = 0
self.time: TimeT = 0
Expand Down

0 comments on commit afa3e52

Please sign in to comment.