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 27, 2024
1 parent ee56159 commit 95b647c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mesa/experimental/signals/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Functionality for Observables."""

from .observable_collections import ObservableList
from .mesa_signal import All, Computable, Computed, HasObservables, Observable, Signal
from .observable_collections import ObservableList

__all__ = [
"Observable",
Expand Down
2 changes: 1 addition & 1 deletion mesa/experimental/signals/mesa_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def __init__(self, func: Callable, *args, **kwargs):
self._first = True
self._value = None
self.name: str = "" # set by Computable
self.owner: HasObservables # set by Computable
self.owner: HasObservables # set by Computable

Check warning on line 170 in mesa/experimental/signals/mesa_signal.py

View check run for this annotation

Codecov / codecov/patch

mesa/experimental/signals/mesa_signal.py#L163-L170

Added lines #L163 - L170 were not covered by tests

self.parents: weakref.WeakKeyDictionary[HasObservables, dict[str, Any]] = (

Check warning on line 172 in mesa/experimental/signals/mesa_signal.py

View check run for this annotation

Codecov / codecov/patch

mesa/experimental/signals/mesa_signal.py#L172

Added line #L172 was not covered by tests
weakref.WeakKeyDictionary()
Expand Down

0 comments on commit 95b647c

Please sign in to comment.