Skip to content

Commit

Permalink
Allow Number sub-classes to serialize None to colander.null
Browse files Browse the repository at this point in the history
This brings back behaviour that was intended to be included in #59 and
commit 24f648d but was accidentally
reverted in 513d860.

Closes #204
  • Loading branch information
digitalresistor committed Feb 1, 2019
1 parent 064ce08 commit d2bab75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colander/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ class Number(SchemaType):
num = None

def serialize(self, node, appstruct):
if appstruct is null:
if appstruct in (null, None):
return null

try:
Expand Down

0 comments on commit d2bab75

Please sign in to comment.