marshmallow 3.23.1__tar.gz → 3.23.2__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.23.1 → marshmallow-3.23.2}/CHANGELOG.rst +10 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/PKG-INFO +1 -14
- {marshmallow-3.23.1 → marshmallow-3.23.2}/README.rst +0 -13
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/conf.py +1 -1
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/index.rst +0 -9
- {marshmallow-3.23.1 → marshmallow-3.23.2}/pyproject.toml +1 -1
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/fields.py +18 -13
- marshmallow-3.23.1/docs/_static/css/sponsor-message.css +0 -15
- {marshmallow-3.23.1 → marshmallow-3.23.2}/CONTRIBUTING.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/LICENSE +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/NOTICE +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/SECURITY.md +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/.gitignore +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/_static/css/versionwarning.css +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/_static/marshmallow-logo.png +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/_templates/donate.html +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/_templates/useful-links.html +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/about.rst.inc +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/api_reference.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/authors.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/changelog.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/code_of_conduct.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/contributing.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/custom_fields.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/dashing.json +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/ecosystem.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/examples.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/extending.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/install.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/kudos.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/license.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/marshmallow.class_registry.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/marshmallow.decorators.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/marshmallow.error_store.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/marshmallow.exceptions.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/marshmallow.fields.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/marshmallow.schema.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/marshmallow.utils.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/marshmallow.validate.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/nesting.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/quickstart.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/upgrading.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/whos_using.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/docs/why.rst +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/__init__.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/base.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/class_registry.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/decorators.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/error_store.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/exceptions.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/orderedset.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/py.typed +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/schema.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/types.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/utils.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/validate.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/src/marshmallow/warnings.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/__init__.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/base.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/conftest.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/foo_serializer.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/mypy_test_cases/test_validation_error.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_decorators.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_deserialization.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_error_store.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_exceptions.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_fields.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_options.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_registry.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_schema.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_serialization.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_utils.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_validate.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tests/test_version_attributes.py +0 -0
- {marshmallow-3.23.1 → marshmallow-3.23.2}/tox.ini +0 -0
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
---------
|
|
3
3
|
|
|
4
|
+
3.23.2 (2024-12-18)
|
|
5
|
+
*******************
|
|
6
|
+
|
|
7
|
+
Bug fixes:
|
|
8
|
+
|
|
9
|
+
- Improve type hint formatting for ``Field``, ``Nested``, and ``Function`` fields
|
|
10
|
+
to resolve PyCharm warnings (:issue:`2268`).
|
|
11
|
+
Thanks :user:`Fares-Abubaker` for reporting and fixing.
|
|
12
|
+
|
|
13
|
+
|
|
4
14
|
3.23.1 (2024-11-01)
|
|
5
15
|
*******************
|
|
6
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: marshmallow
|
|
3
|
-
Version: 3.23.
|
|
3
|
+
Version: 3.23.2
|
|
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>
|
|
@@ -59,19 +59,6 @@ marshmallow: simplified object serialization
|
|
|
59
59
|
|
|
60
60
|
**marshmallow** is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.
|
|
61
61
|
|
|
62
|
-
Sponsor Message
|
|
63
|
-
===============
|
|
64
|
-
|
|
65
|
-
Input an OpenAPI spec to generate API docs that look as good as Stripe's. `Request a preview <https://form.typeform.com/to/uc55zY0F>`_ of your docs on Fern.
|
|
66
|
-
|
|
67
|
-
.. image:: https://github.com/user-attachments/assets/69916225-0d61-4bd7-b3b9-e378557673cb
|
|
68
|
-
:target: https://form.typeform.com/to/uc55zY0F
|
|
69
|
-
:align: center
|
|
70
|
-
:alt: Fern logo
|
|
71
|
-
|
|
72
|
-
Example
|
|
73
|
-
=======
|
|
74
|
-
|
|
75
62
|
.. code-block:: python
|
|
76
63
|
|
|
77
64
|
from datetime import date
|
|
@@ -22,19 +22,6 @@ marshmallow: simplified object serialization
|
|
|
22
22
|
|
|
23
23
|
**marshmallow** is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.
|
|
24
24
|
|
|
25
|
-
Sponsor Message
|
|
26
|
-
===============
|
|
27
|
-
|
|
28
|
-
Input an OpenAPI spec to generate API docs that look as good as Stripe's. `Request a preview <https://form.typeform.com/to/uc55zY0F>`_ of your docs on Fern.
|
|
29
|
-
|
|
30
|
-
.. image:: https://github.com/user-attachments/assets/69916225-0d61-4bd7-b3b9-e378557673cb
|
|
31
|
-
:target: https://form.typeform.com/to/uc55zY0F
|
|
32
|
-
:align: center
|
|
33
|
-
:alt: Fern logo
|
|
34
|
-
|
|
35
|
-
Example
|
|
36
|
-
=======
|
|
37
|
-
|
|
38
25
|
.. code-block:: python
|
|
39
26
|
|
|
40
27
|
from datetime import date
|
|
@@ -36,7 +36,7 @@ exclude_patterns = ["_build"]
|
|
|
36
36
|
html_theme_path = [alabaster.get_path()]
|
|
37
37
|
html_theme = "alabaster"
|
|
38
38
|
html_static_path = ["_static"]
|
|
39
|
-
html_css_files = ["css/versionwarning.css"
|
|
39
|
+
html_css_files = ["css/versionwarning.css"]
|
|
40
40
|
templates_path = ["_templates"]
|
|
41
41
|
html_show_sourcelink = False
|
|
42
42
|
|
|
@@ -6,15 +6,6 @@ marshmallow: simplified object serialization
|
|
|
6
6
|
|
|
7
7
|
Release v\ |version|. (:doc:`Changelog <changelog>`)
|
|
8
8
|
|
|
9
|
-
.. admonition:: Sponsor Message
|
|
10
|
-
|
|
11
|
-
Input an OpenAPI spec to generate API docs that look as good as Stripe's. `Request a preview <https://form.typeform.com/to/uc55zY0F>`_ of your docs on Fern.
|
|
12
|
-
|
|
13
|
-
.. image:: https://github.com/user-attachments/assets/69916225-0d61-4bd7-b3b9-e378557673cb
|
|
14
|
-
:target: https://form.typeform.com/to/uc55zY0F
|
|
15
|
-
:align: center
|
|
16
|
-
:alt: Fern logo
|
|
17
|
-
|
|
18
9
|
.. include:: about.rst.inc
|
|
19
10
|
|
|
20
11
|
Upgrading from an older version?
|
|
@@ -166,9 +166,9 @@ class Field(FieldABC):
|
|
|
166
166
|
data_key: str | None = None,
|
|
167
167
|
attribute: str | None = None,
|
|
168
168
|
validate: (
|
|
169
|
-
|
|
170
|
-
| typing.Callable[[typing.Any], typing.Any]
|
|
169
|
+
typing.Callable[[typing.Any], typing.Any]
|
|
171
170
|
| typing.Iterable[typing.Callable[[typing.Any], typing.Any]]
|
|
171
|
+
| None
|
|
172
172
|
) = None,
|
|
173
173
|
required: bool = False,
|
|
174
174
|
allow_none: bool | None = None,
|
|
@@ -321,8 +321,9 @@ class Field(FieldABC):
|
|
|
321
321
|
self,
|
|
322
322
|
attr: str,
|
|
323
323
|
obj: typing.Any,
|
|
324
|
-
accessor:
|
|
325
|
-
|
|
324
|
+
accessor: (
|
|
325
|
+
typing.Callable[[typing.Any, str, typing.Any], typing.Any] | None
|
|
326
|
+
) = None,
|
|
326
327
|
**kwargs,
|
|
327
328
|
):
|
|
328
329
|
"""Pulls the value for the given key from the object, applies the
|
|
@@ -538,11 +539,15 @@ class Nested(Field):
|
|
|
538
539
|
|
|
539
540
|
def __init__(
|
|
540
541
|
self,
|
|
541
|
-
nested:
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
542
|
+
nested: (
|
|
543
|
+
SchemaABC
|
|
544
|
+
| SchemaMeta
|
|
545
|
+
| str
|
|
546
|
+
| dict[str, Field | type[Field]]
|
|
547
|
+
| typing.Callable[
|
|
548
|
+
[], SchemaABC | SchemaMeta | dict[str, Field | type[Field]]
|
|
549
|
+
]
|
|
550
|
+
),
|
|
546
551
|
*,
|
|
547
552
|
dump_default: typing.Any = missing_,
|
|
548
553
|
default: typing.Any = missing_,
|
|
@@ -2024,14 +2029,14 @@ class Function(Field):
|
|
|
2024
2029
|
def __init__(
|
|
2025
2030
|
self,
|
|
2026
2031
|
serialize: (
|
|
2027
|
-
|
|
2028
|
-
| typing.Callable[[typing.Any], typing.Any]
|
|
2032
|
+
typing.Callable[[typing.Any], typing.Any]
|
|
2029
2033
|
| typing.Callable[[typing.Any, dict], typing.Any]
|
|
2034
|
+
| None
|
|
2030
2035
|
) = None,
|
|
2031
2036
|
deserialize: (
|
|
2032
|
-
|
|
2033
|
-
| typing.Callable[[typing.Any], typing.Any]
|
|
2037
|
+
typing.Callable[[typing.Any], typing.Any]
|
|
2034
2038
|
| typing.Callable[[typing.Any, dict], typing.Any]
|
|
2039
|
+
| None
|
|
2035
2040
|
) = None,
|
|
2036
2041
|
**kwargs,
|
|
2037
2042
|
):
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* Override alabaster's admonition styling, which we used for sponsored messages */
|
|
2
|
-
|
|
3
|
-
div.admonition-sponsor-message p.admonition-title {
|
|
4
|
-
font-size: 18px;
|
|
5
|
-
font-style: normal;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
p.admonition-title::after {
|
|
9
|
-
content: "";
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
div.admonition-sponsor-message p {
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
font-style: italic;
|
|
15
|
-
}
|
|
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
|