Don't expose Fields as Schema attributes. This reverts a change introduced in 3.12.0 that causes issues when field names conflict with Schema attributes or methods. Fieldss are still accessible on a Schema instance throught the fields attribute. (1843)
3.12.1 (2021-05-10)
Bug fixes:
Fix bug that raised an AttributeError when instantiating a Schema with a field named parent (1808). Thanks flying-sheep for reporting and helping with the fix.
3.12.0 (2021-05-09)
Features:
Add validate.And (1768). Thanks rugleb for the suggestion.
Add type annotations to marshmallow.decorators (1788, 1789). Thanks michaeldimchuk for the PR.
Let Fields be accessed by name as Schema attributes (1631).
Other changes:
Improve types in marshmallow.validate (1786).
Make marshmallow.validate.Validator an abstract base class (1786).
Remove unnecessary list cast (1785).
3.11.1 (2021-03-29)
Bug fixes:
Fix treatment of dotted keys when unknown=INCLUDE (1506). Thanks rbu for reporting and thanks sirosen for the fix (1745).
3.11.0 (2021-03-28)
Features:
Add fields.IPInterface, fields.IPv4Interface, and IPv6Interface (1733). Thanks madeinoz67 for the suggestion and the PR.
Raise AttributeError for missing methods when using fields.Method (1675). Thanks lassandroan.
Other changes:
Remove unnecessary hasattr and getattr checks in Field (1770).
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 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)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps marshmallow from 3.5.0 to 3.12.2.
Changelog
Sourced from marshmallow's changelog.
... (truncated)
Commits
ceec727
Bump version and update changelogaf9c3d5
Merge pull request #1843 from marshmallow-code/revert_expose_fields_as_attr99c0431
Don't expose Schema fields by name as class/instance attributes38b1ddd
Bump sphinx from 4.0.2 to 4.0.3e0c1c30
Bump autodocsumm from 0.2.4 to 0.2.6a337496
Bump mypy from 0.902 to 0.9107f7e131
Bump mypy from 0.901 to 0.902fa67fe2
Bump mypy from 0.812 to 0.9014e28ae1
Bump sphinx from 4.0.1 to 4.0.28af34a9
Bump sphinx from 4.0.0 to 4.0.1Dependabot 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 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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)