Skip to content

Commit

Permalink
Make Via a frozen dataclass. (#1882)
Browse files Browse the repository at this point in the history
* Make Via a frozen dataclass.

* Update changelog.
  • Loading branch information
Gamenot authored Feb 23, 2023
1 parent fc0f086 commit 15909df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Copy and pasting the git commit messages is __NOT__ enough.
### Deprecated
### Fixed
- Ensured that `hiwayenv.reset` provides unique agent-mission sets per reset.
- Fixed an issue where `sstudio.types.Via` was not hashable.
### Removed
### Security

Expand Down
2 changes: 1 addition & 1 deletion smarts/sstudio/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def to_edge(self, sumo_road_network) -> str:
)


@dataclass
@dataclass(frozen=True)
class Via:
"""A point on a road that an actor must pass through"""

Expand Down

0 comments on commit 15909df

Please sign in to comment.