ovld 0.5.10__tar.gz → 0.5.12__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 (69) hide show
  1. {ovld-0.5.10 → ovld-0.5.12}/PKG-INFO +1 -1
  2. {ovld-0.5.10 → ovld-0.5.12}/pyproject.toml +1 -1
  3. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/medley.py +1 -1
  4. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/utils.py +1 -1
  5. ovld-0.5.12/src/ovld/version.py +1 -0
  6. ovld-0.5.10/src/ovld/version.py +0 -1
  7. {ovld-0.5.10 → ovld-0.5.12}/.github/workflows/publish.yml +0 -0
  8. {ovld-0.5.10 → ovld-0.5.12}/.github/workflows/python-package.yml +0 -0
  9. {ovld-0.5.10 → ovld-0.5.12}/.gitignore +0 -0
  10. {ovld-0.5.10 → ovld-0.5.12}/.python-version +0 -0
  11. {ovld-0.5.10 → ovld-0.5.12}/.readthedocs.yaml +0 -0
  12. {ovld-0.5.10 → ovld-0.5.12}/LICENSE +0 -0
  13. {ovld-0.5.10 → ovld-0.5.12}/README.md +0 -0
  14. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/__init__.py +0 -0
  15. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/common.py +0 -0
  16. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/conftest.py +0 -0
  17. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/test_add.py +0 -0
  18. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/test_ast.py +0 -0
  19. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/test_calc.py +0 -0
  20. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/test_fib.py +0 -0
  21. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/test_multer.py +0 -0
  22. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/test_regexp.py +0 -0
  23. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/test_trivial.py +0 -0
  24. {ovld-0.5.10 → ovld-0.5.12}/benchmarks/test_tweaknum.py +0 -0
  25. {ovld-0.5.10 → ovld-0.5.12}/docs/codegen.md +0 -0
  26. {ovld-0.5.10 → ovld-0.5.12}/docs/compare.md +0 -0
  27. {ovld-0.5.10 → ovld-0.5.12}/docs/dependent.md +0 -0
  28. {ovld-0.5.10 → ovld-0.5.12}/docs/features.md +0 -0
  29. {ovld-0.5.10 → ovld-0.5.12}/docs/index.md +0 -0
  30. {ovld-0.5.10 → ovld-0.5.12}/docs/medley.md +0 -0
  31. {ovld-0.5.10 → ovld-0.5.12}/docs/types.md +0 -0
  32. {ovld-0.5.10 → ovld-0.5.12}/docs/usage.md +0 -0
  33. {ovld-0.5.10 → ovld-0.5.12}/mkdocs.yml +0 -0
  34. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/__init__.py +0 -0
  35. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/abc.py +0 -0
  36. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/codegen.py +0 -0
  37. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/core.py +0 -0
  38. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/dependent.py +0 -0
  39. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/mro.py +0 -0
  40. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/py.typed +0 -0
  41. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/recode.py +0 -0
  42. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/signatures.py +0 -0
  43. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/typemap.py +0 -0
  44. {ovld-0.5.10 → ovld-0.5.12}/src/ovld/types.py +0 -0
  45. {ovld-0.5.10 → ovld-0.5.12}/tests/__init__.py +0 -0
  46. {ovld-0.5.10 → ovld-0.5.12}/tests/modules/gingerbread.py +0 -0
  47. {ovld-0.5.10 → ovld-0.5.12}/tests/test_abc.py +0 -0
  48. {ovld-0.5.10 → ovld-0.5.12}/tests/test_codegen/test_dataclass_gen.txt +0 -0
  49. {ovld-0.5.10 → ovld-0.5.12}/tests/test_codegen/test_method.txt +0 -0
  50. {ovld-0.5.10 → ovld-0.5.12}/tests/test_codegen/test_method_metaclass.txt +0 -0
  51. {ovld-0.5.10 → ovld-0.5.12}/tests/test_codegen/test_method_per_instance.txt +0 -0
  52. {ovld-0.5.10 → ovld-0.5.12}/tests/test_codegen/test_simple.txt +0 -0
  53. {ovld-0.5.10 → ovld-0.5.12}/tests/test_codegen/test_variant_generation.txt +0 -0
  54. {ovld-0.5.10 → ovld-0.5.12}/tests/test_codegen.py +0 -0
  55. {ovld-0.5.10 → ovld-0.5.12}/tests/test_dependent.py +0 -0
  56. {ovld-0.5.10 → ovld-0.5.12}/tests/test_examples.py +0 -0
  57. {ovld-0.5.10 → ovld-0.5.12}/tests/test_global.py +0 -0
  58. {ovld-0.5.10 → ovld-0.5.12}/tests/test_medley.py +0 -0
  59. {ovld-0.5.10 → ovld-0.5.12}/tests/test_mro.py +0 -0
  60. {ovld-0.5.10 → ovld-0.5.12}/tests/test_ovld/test_display.txt +0 -0
  61. {ovld-0.5.10 → ovld-0.5.12}/tests/test_ovld/test_display_more.txt +0 -0
  62. {ovld-0.5.10 → ovld-0.5.12}/tests/test_ovld/test_doc.txt +0 -0
  63. {ovld-0.5.10 → ovld-0.5.12}/tests/test_ovld/test_doc2.txt +0 -0
  64. {ovld-0.5.10 → ovld-0.5.12}/tests/test_ovld/test_method_doc.txt +0 -0
  65. {ovld-0.5.10 → ovld-0.5.12}/tests/test_ovld.py +0 -0
  66. {ovld-0.5.10 → ovld-0.5.12}/tests/test_typemap.py +0 -0
  67. {ovld-0.5.10 → ovld-0.5.12}/tests/test_types.py +0 -0
  68. {ovld-0.5.10 → ovld-0.5.12}/tests/test_utils.py +0 -0
  69. {ovld-0.5.10 → ovld-0.5.12}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ovld
3
- Version: 0.5.10
3
+ Version: 0.5.12
4
4
  Summary: Overloading Python functions
5
5
  Project-URL: Homepage, https://ovld.readthedocs.io/en/latest/
6
6
  Project-URL: Documentation, https://ovld.readthedocs.io/en/latest/
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ovld"
3
- version = "0.5.10"
3
+ version = "0.5.12"
4
4
  description = "Overloading Python functions"
5
5
  authors = [
6
6
  { name = "Olivier Breuleux", email = "breuleux@gmail.com" }
@@ -58,7 +58,7 @@ class ImplList(Combiner):
58
58
  self.impls = impls or []
59
59
 
60
60
  def copy(self):
61
- return type(self)(self.field, self.impls)
61
+ return type(self)(self.field, list(self.impls))
62
62
 
63
63
  def get(self, cls):
64
64
  if not self.impls:
@@ -205,7 +205,7 @@ _standard_instancechecks = {
205
205
 
206
206
  def is_dependent(t):
207
207
  if any(is_dependent(subt) for subt in get_args(t)):
208
- return True
208
+ return typing.get_origin(t) is not type
209
209
  elif hasattr(t, "__dependent__"):
210
210
  return t.__dependent__
211
211
  elif not isinstance(t, type):
@@ -0,0 +1 @@
1
+ version = "0.5.12"
@@ -1 +0,0 @@
1
- version = "0.5.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes