str-to-obj 2024.8__py3-none-any.whl → 2024.9__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.
@@ -8,7 +8,7 @@ import dataclasses as d
8
8
  import typing as h
9
9
  from enum import Enum as enum_t
10
10
 
11
- from logger_36.content import FormattedMessage
11
+ from logger_36.content import MessageWithActualExpected
12
12
  from str_to_obj.type.annotation import annotation_t
13
13
  from str_to_obj.type.hint import annotated_hint_t
14
14
 
@@ -42,7 +42,7 @@ class boolean_t(annotation_t):
42
42
  mode = boolean_mode_e[mode].value
43
43
  else:
44
44
  raise ValueError(
45
- FormattedMessage(
45
+ MessageWithActualExpected(
46
46
  "Invalid boolean mode",
47
47
  actual=mode,
48
48
  expected=" or ".join(_BOOLEAN_MODES),
@@ -9,7 +9,7 @@ import re as regx
9
9
  import types as t
10
10
  import typing as h
11
11
 
12
- from logger_36.content import FormattedMessage
12
+ from logger_36.content import MessageWithActualExpected
13
13
  from str_to_obj.catalog.choices import choices_t
14
14
  from str_to_obj.task.inspection import HintComponents
15
15
  from str_to_obj.type.annotation import annotation_t
@@ -54,7 +54,7 @@ class hint_t(_hint_node_t):
54
54
  if isinstance(hint, annotation_t):
55
55
  # This is a common mistake in specifications.
56
56
  raise ValueError(
57
- FormattedMessage(
57
+ MessageWithActualExpected(
58
58
  "Invalid hint type", actual=type(hint).__name__, expected=any_hint_h
59
59
  )
60
60
  )
str_to_obj/version.py CHANGED
@@ -4,7 +4,7 @@ Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
4
4
  SEE COPYRIGHT NOTICE BELOW
5
5
  """
6
6
 
7
- __version__ = "2024.8"
7
+ __version__ = "2024.9"
8
8
 
9
9
 
10
10
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: str-to-obj
3
- Version: 2024.8
3
+ Version: 2024.9
4
4
  Summary: Convert strings to Python objects guided by (potentially annotated) type hints
5
5
  Home-page: https://src.koda.cnrs.fr/eric.debreuve/str-to-obj/
6
6
  Author: Eric Debreuve
@@ -1,9 +1,9 @@
1
1
  str_to_obj/__init__.py,sha256=PCxTXaZiI5pN2HqQPeS4q6r-QgwBrDGwGplHCWACQzA,2318
2
2
  str_to_obj/main.py,sha256=07IFp92qZnSnrcFEq0nNWlo8V45mSQDB6YMvQEMko9k,3373
3
- str_to_obj/version.py,sha256=xwo0Wv924lKKmKIvZH1FxskJ5o1fdTg-Dkcb0mGGY6Y,2206
3
+ str_to_obj/version.py,sha256=E_3VrZEA1owZlxkL4WlA1GMNLq-LqxAddvk8sba-NDk,2206
4
4
  str_to_obj/api/catalog.py,sha256=6ka6JciGdHFP93lg0yq2LO3iZBHfq0upZfXxQSg1izk,2521
5
5
  str_to_obj/api/type.py,sha256=yxD5wTtnh_h8Wa9_k1eex-nrkjtfh4ZJI6Db6hJHI9w,2468
6
- str_to_obj/catalog/boolean.py,sha256=mcVR7KIZbHdtDCo3CZsVenurf8_EweKOoiiA9RR-jUI,3490
6
+ str_to_obj/catalog/boolean.py,sha256=G2ZkLqf1e3cpMzjiGgd3E0aAVs6_xlpzG3U2LiOFbio,3508
7
7
  str_to_obj/catalog/callable.py,sha256=NCoogYzVBUSqiYEj_DoG-szqQdnYhvSj0xdyvg1W7Jw,3626
8
8
  str_to_obj/catalog/choices.py,sha256=eZp_id2gWxgnzw7_RVEgy01s86c0Ci4MbRFZsRJMjJ8,3855
9
9
  str_to_obj/catalog/collection.py,sha256=OkwsgiMFrdvIvLqp1e_bgjBix677knrCSo-vOes86pQ,6767
@@ -17,10 +17,10 @@ str_to_obj/task/comparison.py,sha256=HBzv7gBtOnROsC6Sq-FYpgd_MKzVJreboNiqkza3vJ8
17
17
  str_to_obj/task/inspection.py,sha256=M8YnYq4A_Zz7rC2kgTYSSSawTnG2dCug5FBoCOBJ5g8,3127
18
18
  str_to_obj/type/annotation.py,sha256=xXShME2Q344N3QlsqKtU6ttne54tTVC3b62CHU1TGUM,3838
19
19
  str_to_obj/type/hint.py,sha256=w-yos8eD4CHQsXPfnqeqAc-ozyDWqzw46FOWDtAh7dM,2810
20
- str_to_obj/type/hint_tree.py,sha256=rvd2VgjdBIs-Cu6QPCR5ZhTsjZRYsXwA1skBSwybcxQ,7877
20
+ str_to_obj/type/hint_tree.py,sha256=0A0X-waAWLs8Q3MQ4FXlqQaIUXz6cDhBgw8vloIj0x4,7895
21
21
  str_to_obj/type/type.py,sha256=ywc7GpzM1BsoQ3F0qk4wZ2DG1KZllw-PNv_umIGt8hA,4147
22
22
  str_to_obj/type/value.py,sha256=r9Ko5HHant1JGbsO7vH1unRBr9guc61Jz2piuJT0BjM,2533
23
- str_to_obj-2024.8.dist-info/METADATA,sha256=21-QD-PAqlAZ_OY2WuaG5wiVIIuws6LtMXMhza5pWkg,6464
24
- str_to_obj-2024.8.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
25
- str_to_obj-2024.8.dist-info/top_level.txt,sha256=h-6bR_TAnXRGVSLTeNPlivlaG64xYM3E__Xg7sCgeug,11
26
- str_to_obj-2024.8.dist-info/RECORD,,
23
+ str_to_obj-2024.9.dist-info/METADATA,sha256=LiSzh_-1zQGm9oNB9HHDTb3O50K5wH5xs3Ql7p7expg,6464
24
+ str_to_obj-2024.9.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
25
+ str_to_obj-2024.9.dist-info/top_level.txt,sha256=h-6bR_TAnXRGVSLTeNPlivlaG64xYM3E__Xg7sCgeug,11
26
+ str_to_obj-2024.9.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5