We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d33c84 commit 5e9e053Copy full SHA for 5e9e053
src/message_filters/__init__.py
@@ -32,8 +32,6 @@
32
33
"""Message Filter Objects."""
34
35
-from bisect import insort_right
36
-from dataclasses import dataclass
37
from functools import reduce
38
import itertools
39
import threading
@@ -238,10 +236,14 @@ class Chain(SimpleFilter):
238
236
to the callback you've registered with Chain::registerCallback.
239
237
"""
240
241
- @dataclass
242
class FilterInfo:
243
- message_filter: any
244
- connection_callback_index: int
+ def __init__(
+ self,
+ message_filter: any,
+ connection_callback_index: int,
+ ):
245
+ self.message_filter = message_filter
246
+ self.connection_callback_index = connection_callback_index
247
248
def __init__(self, message_filter=None):
249
SimpleFilter.__init__(self)
0 commit comments