Skip to content

Commit

Permalink
Fix flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Dec 5, 2023
1 parent 0547a8a commit 24855ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/marshmallow/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,8 @@ class Boolean(Field):
"YES",
"1",
1,
True,
# Equal to 1
# True,
}
#: Default falsy values.
falsy = {
Expand All @@ -1161,8 +1162,9 @@ class Boolean(Field):
"NO",
"0",
0,
0.0,
False,
# Equal to 0
# 0.0,
# False,
}

#: Default error messages.
Expand Down
1 change: 1 addition & 0 deletions src/marshmallow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def __init__(self, meta, ordered: bool = False):
warnings.warn(
"The json_module class Meta option is deprecated. Use render_module instead.",
RemovedInMarshmallow4Warning,
stacklevel=2,
)
render_module = getattr(meta, "json_module", json)
else:
Expand Down

0 comments on commit 24855ac

Please sign in to comment.