Skip to content

Commit 1a6d9be

Browse files
committed
Add __slots__ to EventDispatch.
This class is meant to be inherited, the subclass should be allowed to use `__slots__`.
1 parent 75d59e1 commit 1a6d9be

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Changes relevant to the users of python-tcod are documented here.
44
This project adheres to [Semantic Versioning](https://semver.org/) since version `2.0.0`.
55

66
## [Unreleased]
7+
### Changed
8+
- Added an empty `__slots__` to `EventDispatch`.
79

810
## [16.1.0] - 2023-06-23
911
### Added

tcod/event.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,8 @@ def cmd_quit(self) -> None:
13651365
state.dispatch(event)
13661366
'''
13671367

1368+
__slots__ = ()
1369+
13681370
def dispatch(self, event: Any) -> T | None:
13691371
"""Send an event to an `ev_*` method.
13701372

0 commit comments

Comments
 (0)