Skip to content

Commit 6a4bef8

Browse files
committed
Fixed serialization of automatic responders
1 parent 1449a43 commit 6a4bef8

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docs/source/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Glossary
3737
Releases
3838
---------------------
3939

40+
v4.0.2
41+
====================
42+
- Fixed automatic responders not being serializable.
43+
4044
v4.0.1
4145
====================
4246
- Fixed remote serialization of regex and time.

src/daf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import warnings
2323

2424

25-
VERSION = "4.0.1"
25+
VERSION = "4.0.2"
2626

2727

2828
if sys.version_info.minor == 12 and sys.version_info.major == 3:

src/daf/convert.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from . import logging
2828
from . import web
2929
from . import events
30+
from . import responder
3031

3132

3233
__all__ = (
@@ -155,6 +156,9 @@ def import_class(path: str):
155156
re.Pattern: {
156157
"custom_encoder": lambda data: {"pattern": convert_object_to_semi_dict(data.pattern), "flags": data.flags},
157158
"custom_decoder": lambda data: re.compile(data["pattern"], data.get("flags", 0))
159+
},
160+
responder.DMResponder: {
161+
"attrs": ["condition", "action", "constraints"]
158162
}
159163
}
160164

0 commit comments

Comments
 (0)