-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use slots to fortify device classes. (#22)
* Correct model number. I took a final glance at the packaging before putting them away. It says H35i, not i35 on it. * cleanup: Use slots to strongly type the device classes.
1 parent
0cd972c
commit c67c501
Showing
3 changed files
with
25 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
|
||
|
||
class CallbacksMixin: | ||
__slots__ = ['_callbacks'] | ||
|
||
def _setup_callbacks(self): | ||
self._callbacks = set() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters