Skip to content

Commit a2c6250

Browse files
Jonathan Comoharleyk
authored andcommitted
Fix method signatures in custom attribute docs (pynamodb#485)
1 parent 9bfc8e0 commit a2c6250

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/attributes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ You can write your own attribute class which defines the necessary methods like
3636
# attribute
3737
attr_type = BINARY
3838
39-
def serialize(value):
39+
def serialize(self, value):
4040
# convert the value to binary and return it
4141
42-
def deserialize(value):
42+
def deserialize(self, value):
4343
# convert the value from binary back into whatever type you require
4444
4545

0 commit comments

Comments
 (0)