marshmallow 4.2.0__py3-none-any.whl → 4.2.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/schema.py CHANGED
@@ -388,7 +388,7 @@ class Schema(metaclass=SchemaMeta):
388
388
  load_only: typing.ClassVar[tuple[str, ...] | list[str]]
389
389
  """Fields to exclude from serialized results"""
390
390
  dump_only: typing.ClassVar[tuple[str, ...] | list[str]]
391
- """Fields to exclude from serialized results"""
391
+ """Fields to exclude from deserialized results"""
392
392
  unknown: typing.ClassVar[types.UnknownOption]
393
393
  """Whether to exclude, include, or raise an error for unknown fields in the data.
394
394
  Use `EXCLUDE`, `INCLUDE` or `RAISE`.
marshmallow/validate.py CHANGED
@@ -214,8 +214,8 @@ class URL(Validator):
214
214
 
215
215
  # Hostname is optional for file URLS. If absent it means `localhost`.
216
216
  # Fill it in for the validation if needed
217
- if scheme == "file" and value.startswith("file:///"):
218
- matched = regex.search(value.replace("file:///", "file://localhost/", 1))
217
+ if scheme == "file" and value.lower().startswith("file:///"):
218
+ matched = regex.search("file://localhost/" + value[8:])
219
219
  else:
220
220
  matched = regex.search(value)
221
221
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: marshmallow
3
- Version: 4.2.0
3
+ Version: 4.2.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>
@@ -7,13 +7,13 @@ marshmallow/exceptions.py,sha256=1L3ZHwQNelWU5ujIPsON5tZ6WQPk64pBGWNyfwhz608,227
7
7
  marshmallow/fields.py,sha256=_4RmK6DBd8AJ20-BZsJRWIxyJcO-dk_YX1uRVkqMVEI,72518
8
8
  marshmallow/orderedset.py,sha256=adVCG4HtfYFexqZThiFsiwc_i0g8LNWI_bF6cjMz2r0,2953
9
9
  marshmallow/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- marshmallow/schema.py,sha256=OxdZiqVn2d-XKOC2o_FRbXMNox1OOH2yNPN0YSEC6Jc,49955
10
+ marshmallow/schema.py,sha256=GoKS8yEETgnn4-GYULtuliCmu9eSOW00Ss-HtTkaEOc,49957
11
11
  marshmallow/types.py,sha256=X2DVsg8H7fFqco5yK2tZDwoqjxRPFjVurEdT-YogNC8,1161
12
12
  marshmallow/utils.py,sha256=YI38vVbIwa9T1kPrnW8sF6HmTbi0MFZYNzINKwtbxew,5334
13
- marshmallow/validate.py,sha256=HUIjC6XOLRpu7PeoL0xEFnvOh9NzZQYQYb-j6XVL8y4,23942
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.0.dist-info/licenses/LICENSE,sha256=kGtdkFHkJhRMsXOtkRZnuOvQWpxYTCwmwTWzKj7RIAE,1064
17
- marshmallow-4.2.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
18
- marshmallow-4.2.0.dist-info/METADATA,sha256=giDnUgeTpLh1z0xGcDDQQIHXEQGUE3QtmMDAyUP2OjA,7440
19
- marshmallow-4.2.0.dist-info/RECORD,,
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,,