marshmallow 3.26.0__py3-none-any.whl → 3.26.1__py3-none-any.whl

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/fields.py CHANGED
@@ -675,7 +675,7 @@ class Nested(Field):
675
675
  self,
676
676
  value: typing.Any,
677
677
  attr: str | None,
678
- data: typing.Mapping[str, typing.Any] | None = None,
678
+ data: typing.Mapping[str, typing.Any] | None,
679
679
  partial: bool | types.StrSequenceOrSet | None = None,
680
680
  **kwargs,
681
681
  ) -> typing.Any:
marshmallow/schema.py CHANGED
@@ -384,9 +384,9 @@ class Schema(base.SchemaABC, metaclass=SchemaMeta):
384
384
  .. versionchanged:: 3.26.0 Deprecate `ordered`. Field order is preserved by default.
385
385
  """
386
386
 
387
- fields: typing.ClassVar[tuple[Field] | list[Field]]
387
+ fields: typing.ClassVar[tuple[str, ...] | list[str]]
388
388
  """Fields to include in the (de)serialized result"""
389
- additional: typing.ClassVar[tuple[Field] | list[Field]]
389
+ additional: typing.ClassVar[tuple[str, ...] | list[str]]
390
390
  """Fields to include in addition to the explicitly declared fields.
391
391
  `additional <marshmallow.Schema.Meta.additional>` and `fields <marshmallow.Schema.Meta.fields>`
392
392
  are mutually-exclusive options.
@@ -396,7 +396,7 @@ class Schema(base.SchemaABC, metaclass=SchemaMeta):
396
396
  usually better to define fields as class variables, but you may need to
397
397
  use this option, e.g., if your fields are Python keywords.
398
398
  """
399
- exclude: typing.ClassVar[tuple[Field] | list[Field]]
399
+ exclude: typing.ClassVar[tuple[str, ...] | list[str]]
400
400
  """Fields to exclude in the serialized result.
401
401
  Nested fields can be represented with dot delimiters.
402
402
  """
@@ -408,7 +408,10 @@ class Schema(base.SchemaABC, metaclass=SchemaMeta):
408
408
  """Default format for `DateTime <marshmallow.fields.DateTime>` fields."""
409
409
  timeformat: typing.ClassVar[str]
410
410
  """Default format for `Time <marshmallow.fields.Time>` fields."""
411
- render_module: typing.ClassVar[types.RenderModule]
411
+
412
+ # FIXME: Use a more constrained type here.
413
+ # ClassVar[RenderModule] doesn't work.
414
+ render_module: typing.Any
412
415
  """ Module to use for `loads <marshmallow.Schema.loads>` and `dumps <marshmallow.Schema.dumps>`.
413
416
  Defaults to `json` from the standard library.
414
417
  """
@@ -416,9 +419,9 @@ class Schema(base.SchemaABC, metaclass=SchemaMeta):
416
419
  """If `True`, `Schema.dump <marshmallow.Schema.dump>` is a `collections.OrderedDict`."""
417
420
  index_errors: typing.ClassVar[bool]
418
421
  """If `True`, errors dictionaries will include the index of invalid items in a collection."""
419
- load_only: typing.ClassVar[tuple[Field] | list[Field]]
422
+ load_only: typing.ClassVar[tuple[str, ...] | list[str]]
420
423
  """Fields to exclude from serialized results"""
421
- dump_only: typing.ClassVar[tuple[Field] | list[Field]]
424
+ dump_only: typing.ClassVar[tuple[str, ...] | list[str]]
422
425
  """Fields to exclude from serialized results"""
423
426
  unknown: typing.ClassVar[str]
424
427
  """Whether to exclude, include, or raise an error for unknown fields in the data.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: marshmallow
3
- Version: 3.26.0
3
+ Version: 3.26.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>
@@ -4,15 +4,15 @@ marshmallow/class_registry.py,sha256=HTC9srCEaRsiy5L_vUKQso7IQfeZeRXxZfz4_2NitoM
4
4
  marshmallow/decorators.py,sha256=pMjGPaXBZCRfAdQS3Bz5ieTZGA3BOv61FdTPsLwCtMQ,8749
5
5
  marshmallow/error_store.py,sha256=iCPSdw8nJGiS4fjWuIAY1aSI_Hhckcdo3l_g-7pjaMw,2240
6
6
  marshmallow/exceptions.py,sha256=DuARdOcirCdJxmlp16V97hQKAXOokvdW12jXtYOlGyk,2326
7
- marshmallow/fields.py,sha256=DjjL5m5YZbwMVHE97MQDNfoFf_e75qMR3eIs17UuVMc,74763
7
+ marshmallow/fields.py,sha256=TKVxFY9hLpq7ch6_HEb1be5uPw0fgs-uC4n5o_fTkg8,74756
8
8
  marshmallow/orderedset.py,sha256=-Lq83AWIIFs2bxptDwkHtfQ63ebX3WD3R6N3B5rRnVI,2936
9
9
  marshmallow/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- marshmallow/schema.py,sha256=bSBynndwixq1zcOOPdoZkX7DmpVSpHBaNEh1zqiD888,52128
10
+ marshmallow/schema.py,sha256=Dc6ent2eI-0g9phGc1FB4EURpSNDRGFOjpyE2BWwYTc,52207
11
11
  marshmallow/types.py,sha256=VY0_D-Xou7nKjcvWB1iccm8cZtxI3rkis1nhNelNn5Q,979
12
12
  marshmallow/utils.py,sha256=tLzu9FDL3Ph51qKsoqWIyPSwg8dZ8rzjeXXGLUndHFE,11943
13
13
  marshmallow/validate.py,sha256=Fx3F8F20dBGg-Wrv84Chx5SYedX9E0l592hR4MxS0kQ,24652
14
14
  marshmallow/warnings.py,sha256=YHC0kQQBbTKCiA1FuwnbnXqrph7oKuU9BjTV4cxwnzE,192
15
- marshmallow-3.26.0.dist-info/LICENSE,sha256=kGtdkFHkJhRMsXOtkRZnuOvQWpxYTCwmwTWzKj7RIAE,1064
16
- marshmallow-3.26.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
17
- marshmallow-3.26.0.dist-info/METADATA,sha256=Scbh6z8NMiWGVQ3EYrwo6H9-PNczOrepN_tFFZu_A9k,7310
18
- marshmallow-3.26.0.dist-info/RECORD,,
15
+ marshmallow-3.26.1.dist-info/LICENSE,sha256=kGtdkFHkJhRMsXOtkRZnuOvQWpxYTCwmwTWzKj7RIAE,1064
16
+ marshmallow-3.26.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
17
+ marshmallow-3.26.1.dist-info/METADATA,sha256=9TJTS8CSQ5yUx_cNqkUz_0dQU9p0gCQcsJ_lUeq_7tE,7310
18
+ marshmallow-3.26.1.dist-info/RECORD,,