Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hgromer committed May 21, 2021
1 parent 6c6f0fa commit 84f3c5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import json

test_instance = Test('foo')
blob = Marshal.marshal(test_instance)
print(blob)
print(blob.decode())
>>> '{name: foo}'

marshal = Marshal()
Expand Down Expand Up @@ -101,7 +101,7 @@ class TestContainer:
marshal = Marshal()
container_instance = TestContainer({'foo', 'bar'})
blob = marshal.marshal(container_instance)
print(blob)
print(blob.decode())
>>> '{container: ["foo", "bar"]}'

result = marshal.unmarshal(TestContainer,json.loads(blob))
Expand Down Expand Up @@ -190,5 +190,5 @@ print(result.message_obj)
>>> 'Hello from the custom delegate!'
```

The result from any delegate should be initialized resulting class instance
The result from any delegate should be the initialized resulting class instance

0 comments on commit 84f3c5b

Please sign in to comment.