define __slots__ for class ByteFifo

This commit is contained in:
Stefan Allius
2024-10-15 21:25:09 +02:00
parent 6b9c13ddfe
commit 0c7bf7956d

View File

@@ -7,6 +7,8 @@ else: # pragma: no cover
class ByteFifo:
""" a byte FIFO buffer with trigger callback """
__slots__ = ('__buf', '__trigger_cb')
def __init__(self):
self.__buf = bytearray()
self.__trigger_cb = None