Skip to content

Commit c55bfc1

Browse files
committed
Updated docstring to reflect the addition of the ReadAllRemainingData feature
1 parent ca5d8cc commit c55bfc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

udsoncan/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class DidCodec:
3232
3333
- ``encode`` Must receive any Python object and must return a bytes payload
3434
- ``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.
3636
3737
If a data can be processed by a pack string, then this class may be used as is, without being extended.
3838

0 commit comments

Comments
 (0)