marshmallow 3.21.0__tar.gz → 3.21.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {marshmallow-3.21.0 → marshmallow-3.21.1}/CHANGELOG.rst +8 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/PKG-INFO +1 -1
- {marshmallow-3.21.0 → marshmallow-3.21.1}/pyproject.toml +1 -1
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/schema.py +2 -2
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_schema.py +3 -1
- {marshmallow-3.21.0 → marshmallow-3.21.1}/CONTRIBUTING.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/LICENSE +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/NOTICE +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/README.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/SECURITY.md +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/.gitignore +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/_static/css/versionwarning.css +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/_static/marshmallow-logo.png +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/_templates/donate.html +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/_templates/useful-links.html +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/about.rst.inc +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/api_reference.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/authors.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/changelog.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/code_of_conduct.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/conf.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/contributing.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/custom_fields.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/dashing.json +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/ecosystem.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/examples.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/extending.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/index.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/install.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/kudos.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/license.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/marshmallow.class_registry.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/marshmallow.decorators.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/marshmallow.error_store.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/marshmallow.exceptions.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/marshmallow.fields.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/marshmallow.schema.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/marshmallow.utils.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/marshmallow.validate.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/nesting.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/quickstart.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/upgrading.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/whos_using.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/docs/why.rst +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/__init__.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/base.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/class_registry.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/decorators.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/error_store.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/exceptions.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/fields.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/orderedset.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/py.typed +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/types.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/utils.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/validate.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/src/marshmallow/warnings.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/__init__.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/base.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/conftest.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/foo_serializer.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/mypy_test_cases/test_validation_error.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_decorators.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_deserialization.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_error_store.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_exceptions.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_fields.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_options.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_registry.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_serialization.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_utils.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_validate.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tests/test_version_attributes.py +0 -0
- {marshmallow-3.21.0 → marshmallow-3.21.1}/tox.ini +0 -0
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
---------
|
|
3
3
|
|
|
4
|
+
3.21.1 (2024-03-04)
|
|
5
|
+
*******************
|
|
6
|
+
|
|
7
|
+
Bug fixes:
|
|
8
|
+
|
|
9
|
+
- Fix error message when field is declared as a class and not an instance (:issue:`2245`).
|
|
10
|
+
Thanks :user:`travnick` for reporting.
|
|
11
|
+
|
|
4
12
|
3.21.0 (2024-02-26)
|
|
5
13
|
*******************
|
|
6
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: marshmallow
|
|
3
|
-
Version: 3.21.
|
|
3
|
+
Version: 3.21.1
|
|
4
4
|
Summary: A lightweight library for converting complex datatypes to and from native Python datatypes.
|
|
5
5
|
Author-email: Steven Loria <sloria1@gmail.com>
|
|
6
6
|
Maintainer-email: Steven Loria <sloria1@gmail.com>, Jérôme Lafréchoux <jerome@jolimont.fr>, Jared Deckard <jared@shademaps.com>
|
|
@@ -1047,9 +1047,9 @@ class Schema(base.SchemaABC, metaclass=SchemaMeta):
|
|
|
1047
1047
|
# the type checker's perspective.
|
|
1048
1048
|
if isinstance(field_obj, type) and issubclass(field_obj, base.FieldABC):
|
|
1049
1049
|
msg = (
|
|
1050
|
-
'Field for "{field_name}" must be declared as a '
|
|
1050
|
+
f'Field for "{field_name}" must be declared as a '
|
|
1051
1051
|
"Field instance, not a class. "
|
|
1052
|
-
'Did you mean "fields.{field_obj.__name__}()"?'
|
|
1052
|
+
f'Did you mean "fields.{field_obj.__name__}()"?' # type: ignore
|
|
1053
1053
|
)
|
|
1054
1054
|
raise TypeError(msg) from error
|
|
1055
1055
|
raise error
|
|
@@ -553,7 +553,9 @@ def test_fields_must_be_declared_as_instances(user):
|
|
|
553
553
|
class BadUserSchema(Schema):
|
|
554
554
|
name = fields.String
|
|
555
555
|
|
|
556
|
-
with pytest.raises(
|
|
556
|
+
with pytest.raises(
|
|
557
|
+
TypeError, match='Field for "name" must be declared as a Field instance'
|
|
558
|
+
):
|
|
557
559
|
BadUserSchema().dump(user)
|
|
558
560
|
|
|
559
561
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|