You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: udsoncan/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ class DidCodec:
32
32
33
33
- ``encode`` Must receive any Python object and must return a bytes payload
34
34
- ``decode`` Must receive a bytes payload and may return any Python object
35
-
- ``__len__`` Must return the length of the bytes payload
35
+
- ``__len__`` Must return the length of the bytes payload or raise a ``DidCodec.ReadAllRemainingData`` to read the whole payload. Reading the whole payload is not a feature proposed by ISO-14229.
36
36
37
37
If a data can be processed by a pack string, then this class may be used as is, without being extended.
0 commit comments