worktoy 1.2.0.dev1__tar.gz → 1.2.1__tar.gz

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.
Files changed (215) hide show
  1. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/PKG-INFO +3 -3
  2. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/README.md +2 -2
  3. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/pyproject.toml +1 -1
  4. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/__init__.py +2 -2
  5. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/_object.py +9 -7
  6. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/control_flow/__init__.py +3 -2
  7. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/control_flow/_control_space.py +9 -4
  8. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/desc/__init__.py +6 -3
  9. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/desc/_attri_box.py +55 -4
  10. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/desc/_base_descriptor.py +1 -3
  11. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/desc/_field.py +0 -9
  12. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/dispatch/_dispatcher.py +0 -1
  13. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/dispatch/_overload.py +0 -1
  14. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/ezdata/__init__.py +2 -1
  15. worktoy-1.2.1/src/worktoy/ezdata/_ez_data.py +107 -0
  16. worktoy-1.2.1/src/worktoy/ezdata/_ez_field.py +948 -0
  17. worktoy-1.2.1/src/worktoy/ezdata/_ez_hook.py +1806 -0
  18. worktoy-1.2.1/src/worktoy/ezdata/_ez_meta.py +398 -0
  19. worktoy-1.2.1/src/worktoy/ezdata/_ez_space.py +337 -0
  20. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/ezdata/_ez_store.py +35 -4
  21. worktoy-1.2.1/src/worktoy/ezdata/_fields.py +58 -0
  22. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_flag.py +13 -10
  23. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_member.py +17 -5
  24. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_space.py +1 -2
  25. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_space_hook.py +1 -5
  26. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/_abstract_metaclass.py +6 -2
  27. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/_abstract_namespace.py +3 -3
  28. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/space_hooks/_abstract_space_hook.py +1 -5
  29. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_bipartite_matching.py +0 -8
  30. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_join_words.py +11 -0
  31. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_resolve_mro.py +11 -0
  32. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_string_list.py +11 -0
  33. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_text_fmt.py +20 -0
  34. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_type_cast.py +47 -12
  35. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_unpack.py +11 -0
  36. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_word_wrap.py +11 -0
  37. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/combinatorics/_arrangement.py +0 -1
  38. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/combinatorics/_arrangements.py +0 -3
  39. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/__init__.py +6 -2
  40. worktoy-1.2.1/src/worktoy/waitaminute/_redundant_keyword.py +64 -0
  41. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/_risk_warning.py +1 -1
  42. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/_type_exception.py +5 -7
  43. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/_unpack_exception.py +1 -1
  44. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/_variable_not_none.py +2 -2
  45. worktoy-1.2.1/src/worktoy/waitaminute/_work_toy_exception.py +51 -0
  46. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_not_a_descriptor.py +2 -4
  47. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_phantom_box_error.py +2 -1
  48. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_protected_error.py +12 -3
  49. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_read_only_error.py +2 -2
  50. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_without_exception.py +5 -2
  51. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_write_once_error.py +3 -3
  52. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/dispatch/_dispatch_exception.py +1 -2
  53. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/dispatch/_type_cast_exception.py +2 -2
  54. worktoy-1.2.1/src/worktoy/waitaminute/ezdata/_duplicate_error.py +66 -0
  55. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/ezdata/_incomplete_field_exception.py +6 -2
  56. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/ezdata/_kw_only_exception.py +7 -0
  57. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/ezdata/_reserved_field_error.py +16 -13
  58. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_box_exception.py +1 -1
  59. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_box_type_error.py +1 -1
  60. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_box_value_error.py +2 -2
  61. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_resolve_error.py +2 -2
  62. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_type_exception.py +2 -2
  63. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_write_once_error.py +11 -9
  64. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_hook_exception.py +11 -8
  65. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/__init__.py +11 -1
  66. worktoy-1.2.1/src/worktoy/work_test/_base_test.py +505 -0
  67. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/_complex_mixin.py +41 -6
  68. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/_complex_test.py +1 -1
  69. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/_sub_test.py +27 -10
  70. worktoy-1.2.1/src/worktoy/work_test/_test_meta.py +139 -0
  71. worktoy-1.2.1/src/worktoy/work_test/_test_space.py +69 -0
  72. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/samplers/__init__.py +2 -2
  73. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/samplers/_base_sampler.py +184 -58
  74. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/samplers/_int_sampler.py +47 -7
  75. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/samplers/_lorem_text.py +90 -17
  76. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/samplers/_sampler_meta.py +8 -6
  77. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/samplers/_symbolic_sampler.py +4 -5
  78. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy.egg-info/PKG-INFO +3 -3
  79. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy.egg-info/SOURCES.txt +3 -0
  80. worktoy-1.2.0.dev1/src/worktoy/ezdata/_ez_data.py +0 -98
  81. worktoy-1.2.0.dev1/src/worktoy/ezdata/_ez_field.py +0 -633
  82. worktoy-1.2.0.dev1/src/worktoy/ezdata/_ez_hook.py +0 -1253
  83. worktoy-1.2.0.dev1/src/worktoy/ezdata/_ez_meta.py +0 -295
  84. worktoy-1.2.0.dev1/src/worktoy/ezdata/_ez_space.py +0 -277
  85. worktoy-1.2.0.dev1/src/worktoy/ezdata/_fields.py +0 -46
  86. worktoy-1.2.0.dev1/src/worktoy/waitaminute/_work_toy_exception.py +0 -25
  87. worktoy-1.2.0.dev1/src/worktoy/waitaminute/ezdata/_duplicate_error.py +0 -48
  88. worktoy-1.2.0.dev1/src/worktoy/work_test/_base_test.py +0 -257
  89. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/LICENSE +0 -0
  90. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/setup.cfg +0 -0
  91. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/__init__.py +0 -0
  92. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/_instance_owner.py +0 -0
  93. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/_meta_type.py +0 -0
  94. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/control_flow/_control_flow.py +0 -0
  95. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/control_flow/_meta_flow.py +0 -0
  96. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/control_flow/_skip_set.py +0 -0
  97. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/sentinels/__init__.py +0 -0
  98. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/sentinels/_args.py +0 -0
  99. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/sentinels/_deleted.py +0 -0
  100. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/sentinels/_desc.py +0 -0
  101. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/sentinels/_meta_call.py +0 -0
  102. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/sentinels/_owner.py +0 -0
  103. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/sentinels/_sentinel.py +0 -0
  104. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/core/sentinels/_this.py +0 -0
  105. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/desc/_alias.py +0 -0
  106. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/desc/_fast_box.py +0 -0
  107. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/desc/_fix_box.py +0 -0
  108. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/desc/_root_alias.py +0 -0
  109. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/desc/_symbolic_name.py +0 -0
  110. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/dispatch/__init__.py +0 -0
  111. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/dispatch/_call_me_maybe.py +0 -0
  112. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/dispatch/_flex_call.py +0 -0
  113. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/dispatch/_permuter.py +0 -0
  114. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/dispatch/_permuter_method.py +0 -0
  115. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/dispatch/_type_sig.py +0 -0
  116. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/__init__.py +0 -0
  117. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_access_num.py +0 -0
  118. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_box.py +0 -0
  119. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_flags.py +0 -0
  120. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_flags_hook.py +0 -0
  121. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_flags_meta.py +0 -0
  122. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_flags_space.py +0 -0
  123. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_meta.py +0 -0
  124. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_meta_meta.py +0 -0
  125. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/keenum/_kee_num.py +0 -0
  126. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/lorem_ipsum/__init__.py +0 -0
  127. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/lorem_ipsum/_base_generator.py +0 -0
  128. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/lorem_ipsum/_clause.py +0 -0
  129. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/lorem_ipsum/_gaussian_lengths.py +0 -0
  130. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/lorem_ipsum/_paragraph.py +0 -0
  131. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/lorem_ipsum/_sentence.py +0 -0
  132. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/lorem_ipsum/_stochastic_variable.py +0 -0
  133. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/lorem_ipsum/_stochastic_word.py +0 -0
  134. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/lorem_ipsum/_words.py +0 -0
  135. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/__init__.py +0 -0
  136. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/_base_meta.py +0 -0
  137. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/_base_object.py +0 -0
  138. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/_base_space.py +0 -0
  139. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/space_hooks/__init__.py +0 -0
  140. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/space_hooks/_flex_call_hook.py +0 -0
  141. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/space_hooks/_load_space_hook.py +0 -0
  142. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/space_hooks/_name_hook.py +0 -0
  143. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/space_hooks/_reserved_names.py +0 -0
  144. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/space_hooks/_reserved_namespace_hook.py +0 -0
  145. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/mcls/space_hooks/_space_desc.py +0 -0
  146. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/py.typed +0 -0
  147. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/__init__.py +0 -0
  148. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_args_count.py +0 -0
  149. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_class_body_template.py +0 -0
  150. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_directory.py +0 -0
  151. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_exception_info.py +0 -0
  152. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_maybe.py +0 -0
  153. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_quick_desc.py +0 -0
  154. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_replace_flex.py +0 -0
  155. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_slice_len.py +0 -0
  156. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/_valid_slice.py +0 -0
  157. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/combinatorics/__init__.py +0 -0
  158. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/utilities/combinatorics/_index_permutations.py +0 -0
  159. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/_alternative_warning.py +0 -0
  160. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/_deprecated_promise.py +0 -0
  161. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/_missing_variable.py +0 -0
  162. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/_subclass_exception.py +0 -0
  163. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/_uncheckable_type.py +0 -0
  164. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/_work_toy_warning.py +0 -0
  165. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/control_flow/__init__.py +0 -0
  166. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/__init__.py +0 -0
  167. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_access_error.py +0 -0
  168. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_dangling_alias.py +0 -0
  169. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_descriptor_exception.py +0 -0
  170. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_missing_instance_dict.py +0 -0
  171. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_nameless_callback.py +0 -0
  172. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_overload_reference.py +0 -0
  173. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_recursive_read.py +0 -0
  174. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_reference_conflict.py +0 -0
  175. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/desc/_shared_descriptor.py +0 -0
  176. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/dispatch/__init__.py +0 -0
  177. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/dispatch/_bare_overload.py +0 -0
  178. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/dispatch/_duplicate_signature.py +0 -0
  179. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/dispatch/_unbound_cast_hook.py +0 -0
  180. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/ezdata/__init__.py +0 -0
  181. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/ezdata/_class_field_error.py +0 -0
  182. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/ezdata/_extra_keyword_exception.py +0 -0
  183. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/ezdata/_extra_positional_exception.py +0 -0
  184. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/ezdata/_repeated_field_exception.py +0 -0
  185. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/ezdata/_reserved_attribute_error.py +0 -0
  186. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/ezdata/_reserved_method_error.py +0 -0
  187. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/__init__.py +0 -0
  188. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_case_exception.py +0 -0
  189. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_duplicate.py +0 -0
  190. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_flag_duplicate.py +0 -0
  191. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_flag_name_error.py +0 -0
  192. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_member_name_error.py +0 -0
  193. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/keenum/_kee_name_conflict.py +0 -0
  194. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/__init__.py +0 -0
  195. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_claimed_name.py +0 -0
  196. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_control_class_error.py +0 -0
  197. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_del_exception.py +0 -0
  198. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_duplicate_hook.py +0 -0
  199. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_duplicate_sentinel.py +0 -0
  200. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_illegal_instantiation.py +0 -0
  201. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_mixed_method_kind.py +0 -0
  202. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_overload_conflict.py +0 -0
  203. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_questionable_syntax.py +0 -0
  204. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_rebound_overload.py +0 -0
  205. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_reserved_name.py +0 -0
  206. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_shadowed_class_hook.py +0 -0
  207. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_slots_refused.py +0 -0
  208. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/waitaminute/meta/_unbound_class_hook.py +0 -0
  209. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/samplers/_float_sampler.py +0 -0
  210. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/samplers/_gaussian_sampler.py +0 -0
  211. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/samplers/_lorem_sampler.py +0 -0
  212. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy/work_test/samplers/_word_sampler.py +0 -0
  213. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy.egg-info/dependency_links.txt +0 -0
  214. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/src/worktoy.egg-info/top_level.txt +0 -0
  215. {worktoy-1.2.0.dev1 → worktoy-1.2.1}/tests/test_smoke.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: worktoy
3
- Version: 1.2.0.dev1
3
+ Version: 1.2.1
4
4
  Summary: Declarative structure for Python that enforces types at runtime and enables true function overloading
5
5
  Author-email: Asger Jon Vistisen <asgerjon2@gmail.com>
6
6
  License-Expression: Apache-2.0
@@ -27,12 +27,12 @@ License-File: LICENSE
27
27
  Dynamic: license-file
28
28
 
29
29
  [![wakatime](https://wakatime.com/badge/github/AsgerJon/WorkToy.svg)](https://wakatime.com/badge/github/AsgerJon/WorkToy)
30
- [![Tokens](https://img.shields.io/badge/Tokens-19.8B-D97757)](https://claude.com/claude-code)
30
+ [![Tokens](https://img.shields.io/badge/Tokens-23.6B-D97757)](https://claude.com/claude-code)
31
31
  [![codecov](https://codecov.io/gh/AsgerJon/WorkToy/graph/badge.svg?token=FC0KFZJ7JK)](https://codecov.io/gh/AsgerJon/WorkToy)
32
32
  [![PyPI version](https://img.shields.io/pypi/v/worktoy)](https://pypi.org/project/worktoy/)
33
33
  [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
34
34
 
35
- # worktoy v1.2.0-dev1 (development build)
35
+ # worktoy v1.2.1
36
36
 
37
37
  **worktoy** provides utilities for Python development focused on
38
38
  reducing boilerplate while improving type safety and readability. Each
@@ -1,10 +1,10 @@
1
1
  [![wakatime](https://wakatime.com/badge/github/AsgerJon/WorkToy.svg)](https://wakatime.com/badge/github/AsgerJon/WorkToy)
2
- [![Tokens](https://img.shields.io/badge/Tokens-19.8B-D97757)](https://claude.com/claude-code)
2
+ [![Tokens](https://img.shields.io/badge/Tokens-23.6B-D97757)](https://claude.com/claude-code)
3
3
  [![codecov](https://codecov.io/gh/AsgerJon/WorkToy/graph/badge.svg?token=FC0KFZJ7JK)](https://codecov.io/gh/AsgerJon/WorkToy)
4
4
  [![PyPI version](https://img.shields.io/pypi/v/worktoy)](https://pypi.org/project/worktoy/)
5
5
  [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
6
6
 
7
- # worktoy v1.2.0-dev1 (development build)
7
+ # worktoy v1.2.1
8
8
 
9
9
  **worktoy** provides utilities for Python development focused on
10
10
  reducing boilerplate while improving type safety and readability. Each
@@ -5,7 +5,7 @@ build-backend = 'setuptools.build_meta'
5
5
 
6
6
  [project]
7
7
  name = "worktoy"
8
- version = "1.2.0-dev1"
8
+ version = "1.2.1"
9
9
  authors = [
10
10
  { name = "Asger Jon Vistisen", email = "asgerjon2@gmail.com" },
11
11
  ]
@@ -1,7 +1,7 @@
1
1
  """
2
2
  The 'worktoy' package adds runtime type enforcement, declarative
3
3
  attributes, function overloading, and custom-metaclass infrastructure on
4
- top of stock Python. It targets Python 3.7 through 3.14.
4
+ top of stock Python. It targets Python 3.7 through 3.15.
5
5
 
6
6
  The package is layered: each package depends only on the packages listed
7
7
  before it, and the import order below is the canonical dependency order.
@@ -48,7 +48,7 @@ and the enclosing class is left without the decoration.
48
48
  # Copyright (c) 2025-2026 Asger Jon Vistisen
49
49
  from __future__ import annotations
50
50
 
51
- __version__ = '1.2.0-dev1'
51
+ __version__ = '1.2.1'
52
52
 
53
53
  from . import utilities
54
54
  from . import waitaminute
@@ -103,12 +103,13 @@ class Object(metaclass=MetaType):
103
103
  Implementation
104
104
  --------------
105
105
 
106
- Each 'Object' keeps a stack of '(instance, owner)' frames in
107
- '__call_chain__'. '__get__', '__set__' and '__delete__' push a frame,
108
- call 'hookPreGet', 'hookOnGet', 'hookPreSet', 'hookOnSet',
109
- 'hookPreDelete' or 'hookOnDelete' around '__instance_get__',
110
- '__instance_set__' or '__instance_delete__', and pop the frame in a
111
- 'finally' block. 'self.instance' and 'self.owner' read the top frame.
106
+ Each 'Object' has a stack of '(instance, owner)' frames in each thread,
107
+ of which '__call_chain__' gives a copy. '__get__', '__set__' and
108
+ '__delete__' push a frame, call 'hookPreGet', 'hookOnGet',
109
+ 'hookPreSet', 'hookOnSet', 'hookPreDelete' or 'hookOnDelete' around
110
+ '__instance_get__', '__instance_set__' or '__instance_delete__', and
111
+ pop the frame in a 'finally' block. 'self.instance' and 'self.owner'
112
+ read the top frame.
112
113
  The constructor keeps its arguments, which 'getPosArgs' and
113
114
  'getKeyArgs' return with 'THIS', 'OWNER' and 'DESC' replaced. The
114
115
  defaults of the three '__instance_*__' methods return the descriptor,
@@ -901,7 +902,8 @@ class Object(metaclass=MetaType):
901
902
  def _deletedGuard(self, instance: Any, value: Any, ) -> Any:
902
903
  if value is DELETED:
903
904
  if self.__field_name__ is None:
904
- raise MissingVariable(instance, '__field_name__', str)
905
+ # The descriptor is the one without a name, not the instance.
906
+ raise MissingVariable(self, '__field_name__', str)
905
907
  raise MissingVariable(instance, self.__field_name__, object)
906
908
  return value
907
909
 
@@ -12,8 +12,9 @@ identity, which is why the two families sit side by side in 'core'.
12
12
  one root class.
13
13
  - ControlSpace: the namespace object 'MetaFlow' prepares for a signal.
14
14
  - ControlFlow: the root signal every other signal is based on.
15
- - SkipSet: the one signal the library raises itself, from a
16
- descriptor's 'hookPreSet', telling 'Object.__set__' to skip the write.
15
+ - SkipSet: the one signal the library provides beside the root, for a
16
+ descriptor's 'hookPreSet' to raise, telling 'Object.__set__' to skip
17
+ the write. The library catches it and raises it nowhere itself.
17
18
 
18
19
  The refusal of an attribute in a signal's class body, 'ControlClassError',
19
20
  is an error and lives in 'worktoy.waitaminute.meta' with the other
@@ -34,10 +34,11 @@ class ControlSpace(dict):
34
34
 
35
35
  'MetaFlow.__prepare__' creates the namespace. '__setitem__' admits the
36
36
  names in '__white_list__' ('__str__', '__repr__' and the names the
37
- interpreter writes, such as '__classcell__'), and any name 'Exception'
38
- holds as an attribute that is not callable, such as '__module__',
39
- '__qualname__' and '__doc__'. Every other name raises
40
- 'ControlClassError'. The body of the root signal, declared with
37
+ interpreter writes, such as '__classcell__'), and any dunder name
38
+ 'Exception' holds as an attribute that is not callable, such as
39
+ '__module__', '__qualname__' and '__doc__'. Every other name raises
40
+ 'ControlClassError', 'args' among them, which 'Exception' holds as
41
+ data and which would be state. The body of the root signal, declared with
41
42
  '_root=True', is not checked. 'MetaType' writes '__namespace__' into
42
43
  the class past '__setitem__', as for every class it builds.
43
44
 
@@ -93,4 +94,8 @@ class ControlSpace(dict):
93
94
  else:
94
95
  if callable(existing):
95
96
  raise ControlClassError(self, key)
97
+ if not (key.startswith('__') and key.endswith('__')):
98
+ # This branch is reached by the following:
99
+ # - 'args', the one plain name 'Exception' holds as data
100
+ raise ControlClassError(self, key)
96
101
  return dict.__setitem__(self, key, value)
@@ -1,9 +1,12 @@
1
1
  """
2
2
  The 'worktoy.desc' package provides the base descriptor classes. It
3
3
  introduces the descriptor-context: during an access the active
4
- '(instance, owner)' pair is recorded on the descriptor, so accessor
5
- hooks can read the current instance and owner instead of receiving
6
- them as arguments.
4
+ '(instance, owner)' pair is recorded for the descriptor, in the thread
5
+ making the access, so accessor hooks can read the current instance and
6
+ owner instead of receiving them as arguments. A read that runs no code
7
+ but that of 'AttriBox' makes no record: with no read callback
8
+ registered and none of 'hookPreGet', 'hookOnGet' and '__instance_get__'
9
+ overridden, a value already stored is returned as it is.
7
10
 
8
11
  Accessed through the owning class, a descriptor returns itself.
9
12
  Accessed through an instance, it runs the accessor appropriate for
@@ -98,6 +98,10 @@ class AttriBox(BaseDescriptor[T]):
98
98
 
99
99
  __storage_name__ : str or None
100
100
  The cached key in the instance dictionary.
101
+
102
+ __reads_plainly__ : bool or None
103
+ Whether the read hooks and the fetch are those of 'AttriBox', settled
104
+ at the first read through an instance and 'None' until then.
101
105
  """
102
106
 
103
107
  # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
@@ -107,6 +111,7 @@ class AttriBox(BaseDescriptor[T]):
107
111
  # Private Variables
108
112
  __field_type__: Optional[type] = None
109
113
  __storage_name__: Optional[str] = None # kept by '_getStorageName'
114
+ __reads_plainly__: Optional[bool] = None # kept by '_settleReadsPlainly'
110
115
 
111
116
  # Public Variables
112
117
  fieldType: Field[type] = Field()
@@ -470,10 +475,41 @@ class AttriBox(BaseDescriptor[T]):
470
475
  def __get__(self, instance: Any, owner: type) -> T: ...
471
476
  # @formatter:on
472
477
 
478
+ def _settleReadsPlainly(self, ) -> None:
479
+ """
480
+ The '_settleReadsPlainly' method settles, once for the box, whether a
481
+ read through it runs no code but that of 'AttriBox': 'hookPreGet',
482
+ 'hookOnGet' and '__instance_get__' are looked up on the class of the
483
+ box, and '__reads_plainly__' is True when all three are those of
484
+ 'AttriBox', False when a subclass overrides one.
485
+ """
486
+ cls = type(self)
487
+ plain = True
488
+ for name in ('hookPreGet', 'hookOnGet', '__instance_get__'):
489
+ if getattr(cls, name) is not getattr(AttriBox, name):
490
+ plain = False
491
+ object.__setattr__(self, '__reads_plainly__', plain)
492
+
473
493
  def __get__(self, instance: Any, owner: type) -> Union[Self, T]:
474
494
  """
475
495
  Read through the class, the box must give itself, for inspection or
476
- for registering callbacks; read through an instance, the value.
496
+ for registering callbacks; read through an instance, the value. By
497
+ far the most reads are of a value already stored, through a box with
498
+ no read callback, and such a read runs no code of the builder: it
499
+ has no use for the frame or for the hook phases, which cost many
500
+ times the read itself, and must not pay for them.
501
+
502
+ Implementation
503
+ --------------
504
+
505
+ When no read callback is registered and the hooks and the fetch are
506
+ those of 'AttriBox', the stored value is taken from the instance and
507
+ returned, unless it is 'DELETED'. Every other read is the full read
508
+ of 'Object.__get__': the first read of an instance, which builds the
509
+ value, a deleted value, and a storage name that is no name, each of
510
+ which is refused or handled there as before. The callbacks are
511
+ looked at on every read, since one may be registered after reads
512
+ were made.
477
513
 
478
514
  Raises
479
515
  ------
@@ -482,9 +518,24 @@ class AttriBox(BaseDescriptor[T]):
482
518
  The box has no field type or no name, as a box installed with
483
519
  'setattr' after the class was created.
484
520
  """
485
- if instance is not None:
486
- if self.__field_type__ is None:
487
- raise MissingVariable(self, '__field_type__', type)
521
+ if instance is None:
522
+ return super().__get__(instance, owner)
523
+ if self.__field_type__ is None:
524
+ raise MissingVariable(self, '__field_type__', type)
525
+ if not (self.__pre_get_keys__ or self.__on_get_keys__):
526
+ if self.__reads_plainly__ is None:
527
+ self._settleReadsPlainly()
528
+ if self.__reads_plainly__:
529
+ try:
530
+ value = object.__getattribute__(instance, self.__storage_name__)
531
+ except (AttributeError, TypeError):
532
+ # This branch is reached by the following:
533
+ # - The first read of an instance, which has no value yet
534
+ # - A storage name not yet made, or one that is no 'str'
535
+ pass
536
+ else:
537
+ if value is not DELETED:
538
+ return value
488
539
  return super().__get__(instance, owner)
489
540
 
490
541
  def __copy__(self) -> Self:
@@ -19,9 +19,7 @@ T = TypeVar('T', )
19
19
  F = TypeVar('F', bound=Callable[..., Any])
20
20
 
21
21
  if TYPE_CHECKING: # pragma: no cover, no mutate
22
- from typing import TypeAlias, Self, Union, Optional
23
-
24
- Keys: TypeAlias = tuple[str, ...]
22
+ from typing import Self, Union, Optional
25
23
 
26
24
 
27
25
  class BaseDescriptor(Object, Generic[T]):
@@ -18,17 +18,8 @@ T = TypeVar('T')
18
18
  F = TypeVar('F', bound=Callable[..., Any])
19
19
 
20
20
  if TYPE_CHECKING: # pragma: no cover, no mutate
21
- from typing import TypeAlias, Optional
22
21
  from typing import Self
23
22
 
24
- MaybeStr: TypeAlias = Optional[str]
25
-
26
- StrTuple: TypeAlias = tuple[str, ...]
27
- MaybeStrTuple: TypeAlias = Optional[StrTuple]
28
-
29
- CallMeMaybe: TypeAlias = Callable[..., Any]
30
- MaybeBool: TypeAlias = Optional[bool]
31
-
32
23
 
33
24
  class Field(BaseDescriptor[T]):
34
25
  """
@@ -22,7 +22,6 @@ from . import TypeSig, PermuterMethod, CallMeMaybe
22
22
 
23
23
  if TYPE_CHECKING: # pragma: no cover, no mutate
24
24
  from typing import Any, Callable, Never, TypeAlias, Optional, Self
25
- from . import Dispatcher
26
25
 
27
26
  Method: TypeAlias = Callable[[Any, ...], Any]
28
27
  SigFuncList: TypeAlias = list[tuple[TypeSig, Method]]
@@ -24,7 +24,6 @@ if TYPE_CHECKING: # pragma: no cover, no mutate
24
24
 
25
25
  Method: TypeAlias = Callable[..., Any]
26
26
  Decorator: TypeAlias = Callable[[Method], Any]
27
- Order: TypeAlias = tuple[int, ...]
28
27
 
29
28
 
30
29
  class overload: # NOQA
@@ -9,7 +9,8 @@ it is based on, is declared 'ordered'.
9
9
  Public surface:
10
10
 
11
11
  - 'EZData' : the base class users subclass to declare a dataclass.
12
- - 'EZField' : the per-field descriptor; spell as 'EZField[T](...)'.
12
+ - 'EZField' : the declaration of one attribute; spell as
13
+ 'EZField[T](...)'.
13
14
  - 'fields(obj)' : free function returning the EZField tuple for a
14
15
  class or instance, mirroring 'dataclasses.fields'.
15
16
  - 'EZMeta', 'EZSpace', 'EZHook' : the metaclass, namespace, and
@@ -0,0 +1,107 @@
1
+ """
2
+ EZData is the base class for 'worktoy' dataclasses.
3
+ """
4
+ # Apache-2.0 license
5
+ # Copyright (c) 2026 Asger Jon Vistisen
6
+ from __future__ import annotations
7
+
8
+ from typing import TYPE_CHECKING
9
+
10
+ from . import EZMeta
11
+ from ..core import Object
12
+
13
+ if TYPE_CHECKING: # pragma: no cover, no mutate
14
+ from typing import Any, Iterator, Self
15
+
16
+
17
+ class EZData(Object, metaclass=EZMeta):
18
+ """
19
+ A builder often wants a class that is mostly data: a few typed
20
+ attributes with defaults, a constructor taking them, equality by value,
21
+ a readable text and conversions to a dict and a tuple. Writing those by
22
+ hand for every class is the work a dataclass removes. Unlike a standard
23
+ dataclass, every value must be held to the type of its field, as the
24
+ constructor runs and at every assignment after, and a mistake in the
25
+ declaration must fail on the class statement.
26
+
27
+ Implementation
28
+ --------------
29
+
30
+ A subclass places its fields in the class body as 'EZField[T](...)'
31
+ instances, or as bare values whose type becomes the field type,
32
+ optionally passes the class keywords 'frozen=True', 'ordered=True' or
33
+ 'kwOnly=True', or any of their synonyms, and optionally defines
34
+ '__post_init__' for validation or derived state. An annotation alone,
35
+ 'x: int' with no value, declares no field: the fields are what the
36
+ body binds.
37
+
38
+ In return the class receives generated '__init__', '__iter__',
39
+ '__len__', '__eq__', '__setattr__', '__delattr__', 'asDict', 'asTuple',
40
+ 'replace', '__match_args__' and the display dunders. The '__len__'
41
+ gives the number of fields, which '__iter__' yields. The '__setattr__'
42
+ casts every field assignment the way '__init__' does, or refuses it on
43
+ a frozen class, which additionally receives '__hash__'. Every field
44
+ therefore holds an instance of its field type, though not necessarily
45
+ of exactly that type: a 'bool' given to an 'int' field stays a 'bool'.
46
+ The '__delattr__' refuses deleting a field, since every field holds a
47
+ value of its declared type, and lets any other attribute go; on a
48
+ frozen class it refuses every deletion. A class body defining
49
+ '__init__', '__iter__', '__len__', '__eq__', '__hash__', an ordering
50
+ method, '__setattr__' or '__delattr__', plainly or with '@overload',
51
+ raises 'ReservedMethodError', while a plain base, one not built by
52
+ 'EZMeta', may define them, as a mixin written against the same protocol
53
+ does, and the generated methods take precedence over them. A class body
54
+ binding an attribute EZData sets on every class itself, such as
55
+ '__kw_only__', raises 'ReservedAttributeError'. The optional names
56
+ '__field_pairs__', 'asDict', 'asTuple', 'replace', '__repr__',
57
+ '__str__' and '__match_args__' are generated only where neither the
58
+ class body nor a base, EZData or plain, supplies one: the class body's
59
+ own wins, then the first one written by hand along the bases. Ordered
60
+ classes receive the four comparison dunders. Several EZData classes
61
+ with fields may be combined as bases. See 'EZHook.postCompilePhase' for
62
+ the full generation contract.
63
+
64
+ Examples
65
+ --------
66
+
67
+ class Point2D(EZData):
68
+ x = EZField[float](0.0)
69
+ y = EZField[float](0.0)
70
+
71
+ class Circle(EZData, frozen=True, kwOnly=True):
72
+ center = EZField[Point2D]()
73
+ radius = EZField[float](1.0)
74
+ """
75
+
76
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
77
+ # Python API # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
78
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
79
+
80
+ if TYPE_CHECKING: # pragma: no cover, no mutate
81
+ # These stubs shadow the dunder methods 'EZHook' generates at
82
+ # class creation. They exist only so type-checkers see accurate
83
+ # signatures for 'EZData' instances; the factory-built methods in
84
+ # '_ez_hook.py' hint to 'Any' because 'Self' is invalid there.
85
+ def __init__(self, *args, **kwargs) -> None: ...
86
+
87
+ def __iter__(self) -> Iterator[Any]: ...
88
+
89
+ def __len__(self) -> int: ...
90
+
91
+ def __repr__(self) -> str: ...
92
+
93
+ def __eq__(self, other: Any) -> bool: ...
94
+
95
+ def __hash__(self) -> int: ...
96
+
97
+ def __lt__(self, other: Self) -> bool: ...
98
+
99
+ def __le__(self, other: Self) -> bool: ...
100
+
101
+ def __gt__(self, other: Self) -> bool: ...
102
+
103
+ def __ge__(self, other: Self) -> bool: ...
104
+
105
+ def __setattr__(self, key: str, value: Any) -> None: ...
106
+
107
+ def __delattr__(self, key: str) -> None: ...