thds.atacama 1.2.20250828214758__py3-none-any.whl → 1.2.20250902220325__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.

Potentially problematic release.


This version of thds.atacama might be problematic. Click here for more details.

thds/atacama/_cache.py CHANGED
@@ -1,4 +1,5 @@
1
1
  """A simple equality-based cache for schema generation."""
2
+
2
3
  import typing as ty
3
4
  from collections import defaultdict
4
5
  from functools import wraps
thds/atacama/_config.py CHANGED
@@ -4,6 +4,7 @@ If you're looking for Schema load/dump behavior, that belongs to
4
4
  Marshmallow itself and can consequently be configured via _meta.py.
5
5
 
6
6
  """
7
+
7
8
  import typing as ty
8
9
 
9
10
  from thds.core.stack_context import StackContext # this is our only 'dependency' on core.
thds/atacama/_meta.py CHANGED
@@ -4,6 +4,7 @@ configuring Schema load/dump behavior recursively.
4
4
  We have an additional layer of configuration for Schema _generation_,
5
5
  and that lives in _config.py.
6
6
  """
7
+
7
8
  import typing as ty
8
9
 
9
10
  SchemaMeta = ty.NewType("SchemaMeta", type)
@@ -1,4 +1,5 @@
1
1
  """Support custom fields that seem necessary to us."""
2
+
2
3
  import typing as ty
3
4
 
4
5
  import marshmallow as ma
@@ -1,4 +1,5 @@
1
1
  """Built-in generators recommended for use."""
2
+
2
3
  from ._cache import attrs_schema_cache
3
4
  from ._meta import meta
4
5
  from .nonempty import nonempty_validator_xf
thds/atacama/leaf.py CHANGED
@@ -14,11 +14,9 @@ LeafType = ty.Union[type, ty.Any]
14
14
 
15
15
 
16
16
  class LeafTypeMapping(Protocol):
17
- def __contains__(self, __key: LeafType) -> bool:
18
- ... # pragma: nocover
17
+ def __contains__(self, __key: LeafType) -> bool: ... # pragma: nocover
19
18
 
20
- def __getitem__(self, __key: LeafType) -> ty.Type[marshmallow.fields.Field]:
21
- ... # pragma: nocover
19
+ def __getitem__(self, __key: LeafType) -> ty.Type[marshmallow.fields.Field]: ... # pragma: nocover
22
20
 
23
21
 
24
22
  FieldType = ty.Type[marshmallow.fields.Field]
thds/atacama/schemas.py CHANGED
@@ -32,8 +32,9 @@ def _is_schema(a: ty.Any):
32
32
 
33
33
 
34
34
  class NamedFieldsSchemaGenerator(Protocol):
35
- def __call__(self, __attrs_class: type, **__fields: "NamedField") -> ty.Type[marshmallow.Schema]:
36
- ... # pragma: nocover
35
+ def __call__(
36
+ self, __attrs_class: type, **__fields: "NamedField"
37
+ ) -> ty.Type[marshmallow.Schema]: ... # pragma: nocover
37
38
 
38
39
 
39
40
  class _NestedSchemaGenerator:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: thds.atacama
3
- Version: 1.2.20250828214758
3
+ Version: 1.2.20250902220325
4
4
  Summary: A Marshmallow schema generator for `attrs` classes. Inspired by `desert`.
5
5
  Author-email: Trilliant Health <info@trillianthealth.com>
6
6
  License: MIT
@@ -0,0 +1,19 @@
1
+ thds/atacama/__init__.py,sha256=GYDLPjg7E91sPlOKZ8UyhSDCRvhUSbg9hbL-fK2hzZY,265
2
+ thds/atacama/_attrs.py,sha256=CwDIplm48Z4vrj9fDY4YdoB7imUOVpGmguKZW4PpAxo,1605
3
+ thds/atacama/_cache.py,sha256=L6hJaNfp0-hDPHmHUufPcN7zOtzrHChSgHUSnB7vsVM,1478
4
+ thds/atacama/_config.py,sha256=v9ecrw7LRLipP3J1IdlDLOoLc_7SEGRB3lXLnVvZlEw,1443
5
+ thds/atacama/_generic_dispatch.py,sha256=N5gZGTLMDVCwbf3OAx1EIA-wG3_T6CICiy65D-A_RKI,2256
6
+ thds/atacama/_meta.py,sha256=nsvc_mQVBCnjLVnjtpCWFC3_wqq0Cwq-HtWcVPlhKrc,499
7
+ thds/atacama/_typevars.py,sha256=Qp6TDyA-Wfpjv2icAVH4HTOUWsdpGUfPgmuQRtqmEsI,2391
8
+ thds/atacama/custom_fields.py,sha256=xT2PTJsRtu8EVbCLlWxclLe_JhZhq-jB1xS485Dr9oQ,946
9
+ thds/atacama/field_transforms.py,sha256=9Y1HO0U7oZZhmpYegTM1ruZX0hZMgdWS6b4gARb_Yo8,528
10
+ thds/atacama/fields.py,sha256=ZxdL1f-Gr0eWxUfIucjphEOP8_7k-BOE92izdk1iuQI,5462
11
+ thds/atacama/generators.py,sha256=jEJo8wRe2IMgmW97ILVCad9OkbmTsf3K7_5_0VEd6UI,487
12
+ thds/atacama/leaf.py,sha256=ZC_qfgZnPy_LDH-ZxvF6oxo-8FHRnN3UVqxctN5hMQA,4685
13
+ thds/atacama/nonempty.py,sha256=bL1cqNpUzATosiqGdEPEn6zlYcliySKH0tj__2UnijU,1384
14
+ thds/atacama/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
+ thds/atacama/schemas.py,sha256=GxxIVzysQg00oIxtnDepySkT3-8Pp44-BOWT0OxOt2U,9634
16
+ thds_atacama-1.2.20250902220325.dist-info/METADATA,sha256=Vm0vhugsVn1nwqdogNYl9mpffXRy3T1SI0D4Nc5O_go,17816
17
+ thds_atacama-1.2.20250902220325.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ thds_atacama-1.2.20250902220325.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
19
+ thds_atacama-1.2.20250902220325.dist-info/RECORD,,
@@ -1,19 +0,0 @@
1
- thds/atacama/__init__.py,sha256=GYDLPjg7E91sPlOKZ8UyhSDCRvhUSbg9hbL-fK2hzZY,265
2
- thds/atacama/_attrs.py,sha256=CwDIplm48Z4vrj9fDY4YdoB7imUOVpGmguKZW4PpAxo,1605
3
- thds/atacama/_cache.py,sha256=fYZ6iYKvQClCRtuGIQAMdJHyVHJ9Ffyr0dW1eyaMnwA,1477
4
- thds/atacama/_config.py,sha256=Z2gqxnBJvk9plS-3vgNchfq3Z7wBsuyu0SqAmnKFg2o,1442
5
- thds/atacama/_generic_dispatch.py,sha256=N5gZGTLMDVCwbf3OAx1EIA-wG3_T6CICiy65D-A_RKI,2256
6
- thds/atacama/_meta.py,sha256=sOjP0Y0KiNZUAXrxg2JWwolSWlxgU_OUqniUR_2Iv8g,498
7
- thds/atacama/_typevars.py,sha256=Qp6TDyA-Wfpjv2icAVH4HTOUWsdpGUfPgmuQRtqmEsI,2391
8
- thds/atacama/custom_fields.py,sha256=leIsn40R5TexbAgTj1X-HUtkopfEMp5Hwb-0PYQGQ2U,945
9
- thds/atacama/field_transforms.py,sha256=9Y1HO0U7oZZhmpYegTM1ruZX0hZMgdWS6b4gARb_Yo8,528
10
- thds/atacama/fields.py,sha256=ZxdL1f-Gr0eWxUfIucjphEOP8_7k-BOE92izdk1iuQI,5462
11
- thds/atacama/generators.py,sha256=O6LvFaFpsfvAD4l_cCa82usF1RQ4aBHhv8bLikJ5rL0,486
12
- thds/atacama/leaf.py,sha256=Gp2kt8l5dgUq7K_QgMc6ddSbIvCW3kmNO5-7vCxhwEo,4701
13
- thds/atacama/nonempty.py,sha256=bL1cqNpUzATosiqGdEPEn6zlYcliySKH0tj__2UnijU,1384
14
- thds/atacama/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- thds/atacama/schemas.py,sha256=azhePCqWc2IBAqU6xmBR4fDPXrmXX2GhRJU9FliYL6c,9628
16
- thds_atacama-1.2.20250828214758.dist-info/METADATA,sha256=s7C8z1BctHZU6WGTNAxCbHus4_58GPcfBrds4bs9a7M,17816
17
- thds_atacama-1.2.20250828214758.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- thds_atacama-1.2.20250828214758.dist-info/top_level.txt,sha256=LTZaE5SkWJwv9bwOlMbIhiS-JWQEEIcjVYnJrt-CriY,5
19
- thds_atacama-1.2.20250828214758.dist-info/RECORD,,