Add a new class attribute, empty_value to DelimitedList and
DelimitedTuple, with a default of "".
This controls the value deserialized when an empty string is seen.
empty_value can be used to handle types other than strings more gracefully, e.g.
.. code-block:: python
from webargs import fields
class IntList(fields.DelimitedList):
empty_value = 0
myfield = IntList(fields.Int())
.. note::
``empty_value`` will be changing in webargs v9.0 to be ``missing`` by
default. This will allow use of fields with ``load_default`` to specify
handling of the empty value.
The rule for default argument names has been made configurable by overriding
the get_default_arg_name method. This is described in the argument
passing documentation.
Other changes:
Drop support for Python 3.7, which is EOL.
Type annotations for FlaskParser have been improved.
Commits
920eb94 Bump version, update changelog, and update LICENSE
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps webargs from 8.3.0 to 8.4.0.
Changelog
Sourced from webargs's changelog.
Commits
920eb94
Bump version, update changelog, and update LICENSEd80faff
Fix name of GHA workflow32a4cd4
Fix typing of handle_error83ad0a8
Docs updates re: dropping 3.73a954d3
Update .pre-commit-config.yaml9923f3a
Update GHA and tox config for consistency with other marshmallow repose9316db
Bump flake8 from 6.1.0 to 7.0.03ad15a0
Merge pull request #905 from marshmallow-code/dependabot/github_actions/actio...2480108
Bump actions/setup-python from 4 to 5ea1d9d6
[pre-commit.ci] pre-commit autoupdate (#898)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show