Skip to content

Commit

Permalink
Upgrade Marshmallow version to remove pytest warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pdietl committed Sep 16, 2022
1 parent 7c5573c commit 0c717d3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
23 changes: 13 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ python = "^3.7"
beautifultable = ">=1.0.0,<1.1.0"
click = "^8.0.0"
importlib-resources = ">=1.5.0,<1.6.0"
marshmallow = ">=3.6.1,<3.7.0"
marshmallow = ">=3.0.0"
lark-parser = "0.8.5"
progressbar2 = ">=3.51.3,<3.52.0"
requests = ">=2.23.0,<2.24.0"
Expand Down
4 changes: 2 additions & 2 deletions transient/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def arg_to_field(arg: argparse.Action) -> fields.Field:

# If this is an append action, we really want a list of these fields
if isinstance(arg, argparse._AppendAction) or arg.nargs in ("*", "+"):
return fields.List(field, missing=arg.default, allow_none=True)
return fields.List(field, load_default=arg.default, allow_none=True)

return cast(fields.Field, field(missing=arg.default, allow_none=True))
return cast(fields.Field, field(load_default=arg.default, allow_none=True))

class_name = "".join([word.capitalize() for word in parser.prog.split()]) + "Schema"
return cast(
Expand Down

0 comments on commit 0c717d3

Please sign in to comment.