File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,14 @@ def __init__(
91
91
92
92
@property
93
93
def metadata (self ) -> Dict [Text , Any ]:
94
- # needed for backwards compatibility <1.0.0 - previously pickled events
95
- # won't have the `_metadata` attribute
94
+ # Needed for compatibility for Rasa versions <1.4.0.
95
+ # Previous versions of Rasa serialized trackers using the pickle
96
+ # module. For the moment, Rasa still supports loading these serialized
97
+ # trackers with pickle, but will use JSON in any subsequent save
98
+ # operations. Versions of trackers serialized with pickle won't
99
+ # include the `_metadata` attribute in their events, so it is necessary
100
+ # to define this getter in case the attribute does not exist.
101
+ # For more information see CHANGELOG.rst.
96
102
return getattr (self , "_metadata" , {})
97
103
98
104
def __ne__ (self , other : Any ) -> bool :
You can’t perform that action at this time.
0 commit comments