marshmallow 4.2.1__py3-none-any.whl → 4.2.2__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
@@ -2065,10 +2065,10 @@ class Constant(Field[_ContantT]):
2065
2065
  _CHECK_ATTRIBUTE = False
2066
2066
 
2067
2067
  def __init__(self, constant: _ContantT, **kwargs: Unpack[_BaseFieldKwargs]):
2068
+ kwargs["load_default"] = constant
2069
+ kwargs["dump_default"] = constant
2068
2070
  super().__init__(**kwargs)
2069
2071
  self.constant = constant
2070
- self.load_default = constant
2071
- self.dump_default = constant
2072
2072
 
2073
2073
  def _serialize(self, value, *args, **kwargs) -> _ContantT:
2074
2074
  return self.constant
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: marshmallow
3
- Version: 4.2.1
3
+ Version: 4.2.2
4
4
  Summary: A lightweight library for converting complex datatypes to and from native Python datatypes.
5
5
  Author-email: Steven Loria <oss@stevenloria.com>
6
6
  Maintainer-email: Steven Loria <oss@stevenloria.com>, Jérôme Lafréchoux <jerome@jolimont.fr>, Jared Deckard <jared@shademaps.com>
@@ -4,7 +4,7 @@ marshmallow/constants.py,sha256=v86zJ9nywyN7euiHQw8hJSkuPyeuflUvv0jZVtfre8M,415
4
4
  marshmallow/decorators.py,sha256=maOozW03vQ7k9qZqZ_TvTYR3w--kb0NfkAOy1Q0TnZ0,10165
5
5
  marshmallow/error_store.py,sha256=5-62el8Ey2w59x8FDhUC5afPu63NXjumKiAagAGL9bY,2444
6
6
  marshmallow/exceptions.py,sha256=1L3ZHwQNelWU5ujIPsON5tZ6WQPk64pBGWNyfwhz608,2273
7
- marshmallow/fields.py,sha256=_4RmK6DBd8AJ20-BZsJRWIxyJcO-dk_YX1uRVkqMVEI,72518
7
+ marshmallow/fields.py,sha256=SA40zxhbDp-m2TVWKay5TyHLiyyzuVSuYSYmyFlE2aA,72528
8
8
  marshmallow/orderedset.py,sha256=adVCG4HtfYFexqZThiFsiwc_i0g8LNWI_bF6cjMz2r0,2953
9
9
  marshmallow/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  marshmallow/schema.py,sha256=GoKS8yEETgnn4-GYULtuliCmu9eSOW00Ss-HtTkaEOc,49957
@@ -13,7 +13,7 @@ marshmallow/utils.py,sha256=YI38vVbIwa9T1kPrnW8sF6HmTbi0MFZYNzINKwtbxew,5334
13
13
  marshmallow/validate.py,sha256=CxdORzjCDN9ch3uUSyzMTxnMr0pFk1raZd_3B7l--Iw,23932
14
14
  marshmallow/experimental/__init__.py,sha256=5_iaUmT7_f6QML2LJXmA3xqgk5UBAgCeIazHtC1GVgc,147
15
15
  marshmallow/experimental/context.py,sha256=_4KF6sNK6pE0MckyYTGXmU3hJL2tY-TN4oVmE_eDob0,2040
16
- marshmallow-4.2.1.dist-info/licenses/LICENSE,sha256=kGtdkFHkJhRMsXOtkRZnuOvQWpxYTCwmwTWzKj7RIAE,1064
17
- marshmallow-4.2.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
18
- marshmallow-4.2.1.dist-info/METADATA,sha256=43OQVrsTZa_Nf7jSe6zjcFkT44_-_sFGcUg0qT5hYVM,7440
19
- marshmallow-4.2.1.dist-info/RECORD,,
16
+ marshmallow-4.2.2.dist-info/licenses/LICENSE,sha256=kGtdkFHkJhRMsXOtkRZnuOvQWpxYTCwmwTWzKj7RIAE,1064
17
+ marshmallow-4.2.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
18
+ marshmallow-4.2.2.dist-info/METADATA,sha256=Z8lCaLXoD6I0ajmqYfuxXwmg5p0KuqerxLFEbINdZ2E,7440
19
+ marshmallow-4.2.2.dist-info/RECORD,,