marshmallow 4.1.0__py3-none-any.whl → 4.1.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/validate.py +2 -3
- {marshmallow-4.1.0.dist-info → marshmallow-4.1.1.dist-info}/METADATA +1 -1
- {marshmallow-4.1.0.dist-info → marshmallow-4.1.1.dist-info}/RECORD +5 -5
- {marshmallow-4.1.0.dist-info → marshmallow-4.1.1.dist-info}/WHEEL +0 -0
- {marshmallow-4.1.0.dist-info → marshmallow-4.1.1.dist-info}/licenses/LICENSE +0 -0
marshmallow/validate.py
CHANGED
|
@@ -187,7 +187,7 @@ class URL(Validator):
|
|
|
187
187
|
self.relative = relative
|
|
188
188
|
self.absolute = absolute
|
|
189
189
|
self.error: str = error or self.default_message
|
|
190
|
-
self.schemes = schemes
|
|
190
|
+
self.schemes = {s.lower() for s in schemes} if schemes else self.default_schemes
|
|
191
191
|
self.require_tld = require_tld
|
|
192
192
|
|
|
193
193
|
def _repr_args(self) -> str:
|
|
@@ -623,8 +623,7 @@ class OneOf(Validator):
|
|
|
623
623
|
:param valuegetter: Can be a callable or a string. In the former case, it must
|
|
624
624
|
be a one-argument callable which returns the value of a
|
|
625
625
|
choice. In the latter case, the string specifies the name
|
|
626
|
-
of an attribute of the choice objects. Defaults to `str()
|
|
627
|
-
or `str()`.
|
|
626
|
+
of an attribute of the choice objects. Defaults to `str()`.
|
|
628
627
|
"""
|
|
629
628
|
valuegetter = valuegetter if callable(valuegetter) else attrgetter(valuegetter)
|
|
630
629
|
pairs = zip_longest(self.choices, self.labels, fillvalue="")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: marshmallow
|
|
3
|
-
Version: 4.1.
|
|
3
|
+
Version: 4.1.1
|
|
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>
|
|
@@ -10,10 +10,10 @@ marshmallow/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
10
10
|
marshmallow/schema.py,sha256=tgcgL1wqJTMd6irpGL7x89lDUNP4cPRCNPY1y6-kBeI,49955
|
|
11
11
|
marshmallow/types.py,sha256=X2DVsg8H7fFqco5yK2tZDwoqjxRPFjVurEdT-YogNC8,1161
|
|
12
12
|
marshmallow/utils.py,sha256=YI38vVbIwa9T1kPrnW8sF6HmTbi0MFZYNzINKwtbxew,5334
|
|
13
|
-
marshmallow/validate.py,sha256=
|
|
13
|
+
marshmallow/validate.py,sha256=HUIjC6XOLRpu7PeoL0xEFnvOh9NzZQYQYb-j6XVL8y4,23942
|
|
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.1.
|
|
17
|
-
marshmallow-4.1.
|
|
18
|
-
marshmallow-4.1.
|
|
19
|
-
marshmallow-4.1.
|
|
16
|
+
marshmallow-4.1.1.dist-info/licenses/LICENSE,sha256=kGtdkFHkJhRMsXOtkRZnuOvQWpxYTCwmwTWzKj7RIAE,1064
|
|
17
|
+
marshmallow-4.1.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
18
|
+
marshmallow-4.1.1.dist-info/METADATA,sha256=eEQKSULNUI_5lj5IadDRCKURNT1reYzIqCaM7btBUK8,7439
|
|
19
|
+
marshmallow-4.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|