Skip to content

Commit

Permalink
fix: update helpers to be properly typed
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <paul.horton@owasp.org>
  • Loading branch information
madpah committed Aug 19, 2022
1 parent 5d6564d commit d924dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/customising-structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ would add the following method to your class:
Writing Custom Property Serializers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can write your own custom property serializer. The only requirements are that it must implement the ``__new__``
method such that the class's constructor can be passed serialised or deserialized content and perform the inverse.
You can write your own custom property serializer. The only requirements are that it must extend
:obj:`serializable.helpers.BaseHelper` and therefore implement the ``serialize()`` and ``deserialize()`` class methods.

For examples, see :obj:`serializable.helpers`.

Expand Down

0 comments on commit d924dc2

Please sign in to comment.