oop-ext 2.3.1__tar.gz → 2.3.3__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 (82) hide show
  1. {oop_ext-2.3.1 → oop_ext-2.3.3}/.github/workflows/deploy.yml +1 -0
  2. {oop_ext-2.3.1 → oop_ext-2.3.3}/.pre-commit-config.yaml +1 -1
  3. {oop_ext-2.3.1 → oop_ext-2.3.3}/CHANGELOG.rst +24 -2
  4. {oop_ext-2.3.1 → oop_ext-2.3.3}/PKG-INFO +25 -3
  5. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/weak_ref.py +8 -5
  6. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/PKG-INFO +25 -3
  7. {oop_ext-2.3.1 → oop_ext-2.3.3}/.codecov.yml +0 -0
  8. {oop_ext-2.3.1 → oop_ext-2.3.3}/.editorconfig +0 -0
  9. {oop_ext-2.3.1 → oop_ext-2.3.3}/.gitattributes +0 -0
  10. {oop_ext-2.3.1 → oop_ext-2.3.3}/.github/dependabot.yml +0 -0
  11. {oop_ext-2.3.1 → oop_ext-2.3.3}/.github/workflows/test.yml +0 -0
  12. {oop_ext-2.3.1 → oop_ext-2.3.3}/.gitignore +0 -0
  13. {oop_ext-2.3.1 → oop_ext-2.3.3}/.isort.cfg +0 -0
  14. {oop_ext-2.3.1 → oop_ext-2.3.3}/.project +0 -0
  15. {oop_ext-2.3.1 → oop_ext-2.3.3}/.pydevproject +0 -0
  16. {oop_ext-2.3.1 → oop_ext-2.3.3}/.readthedocs.yml +0 -0
  17. {oop_ext-2.3.1 → oop_ext-2.3.3}/CONTRIBUTING.rst +0 -0
  18. {oop_ext-2.3.1 → oop_ext-2.3.3}/LICENSE +0 -0
  19. {oop_ext-2.3.1 → oop_ext-2.3.3}/README.rst +0 -0
  20. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/api.rst +0 -0
  21. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/callbacks.rst +0 -0
  22. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/changelog.rst +0 -0
  23. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/conf.py +0 -0
  24. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/contributing.rst +0 -0
  25. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/img/logo.png +0 -0
  26. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/index.rst +0 -0
  27. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/installation.rst +0 -0
  28. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/interfaces.rst +0 -0
  29. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/readme.rst +0 -0
  30. {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/requirements.txt +0 -0
  31. {oop_ext-2.3.1 → oop_ext-2.3.3}/environment.devenv.yml +0 -0
  32. {oop_ext-2.3.1 → oop_ext-2.3.3}/mypy.ini +0 -0
  33. {oop_ext-2.3.1 → oop_ext-2.3.3}/pyproject.toml +0 -0
  34. {oop_ext-2.3.1 → oop_ext-2.3.3}/setup.cfg +0 -0
  35. {oop_ext-2.3.1 → oop_ext-2.3.3}/setup.py +0 -0
  36. {oop_ext-2.3.1 → oop_ext-2.3.3}/sonar-project.properties +0 -0
  37. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/__init__.py +0 -0
  38. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/_type_checker_fixture.py +0 -0
  39. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/conftest.py +0 -0
  40. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/__init__.py +0 -0
  41. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/__init__.py +0 -0
  42. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_cached_method.py +0 -0
  43. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_decorators.py +0 -0
  44. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_immutable.py +0 -0
  45. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_is_frozen.py +0 -0
  46. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_odict.py +0 -0
  47. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_singleton.py +0 -0
  48. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_types.py +0 -0
  49. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_weak_ref.py +0 -0
  50. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/cached_method.py +0 -0
  51. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/__init__.py +0 -0
  52. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_callback.py +0 -0
  53. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_callbacks.py +0 -0
  54. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_priority_callback.py +0 -0
  55. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_shortcuts.py +0 -0
  56. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/__init__.py +0 -0
  57. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_callback.py +0 -0
  58. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_priority_callback.py +0 -0
  59. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_single_call_callback.py +0 -0
  60. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_typed_callback.py +0 -0
  61. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_typed_callback.py +0 -0
  62. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/single_call_callback.py +0 -0
  63. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/compat.py +0 -0
  64. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/decorators.py +0 -0
  65. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/exceptions.py +0 -0
  66. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/immutable.py +0 -0
  67. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/is_frozen.py +0 -0
  68. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/odict.py +0 -0
  69. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/singleton.py +0 -0
  70. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/types_.py +0 -0
  71. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/interface/__init__.py +0 -0
  72. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/interface/_adaptable_interface.py +0 -0
  73. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/interface/_interface.py +0 -0
  74. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/interface/_tests/__init__.py +0 -0
  75. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/interface/_tests/test_interface.py +0 -0
  76. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/py.typed +0 -0
  77. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/SOURCES.txt +0 -0
  78. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/dependency_links.txt +0 -0
  79. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/not-zip-safe +0 -0
  80. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/requires.txt +0 -0
  81. {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/top_level.txt +0 -0
  82. {oop_ext-2.3.1 → oop_ext-2.3.3}/tox.ini +0 -0
@@ -55,3 +55,4 @@ jobs:
55
55
  with:
56
56
  files: dist/*
57
57
  tag_name: v${{ github.event.inputs.version }}
58
+ target_commitish: ${{ github.sha }}
@@ -31,7 +31,7 @@ repos:
31
31
  language: python
32
32
  additional_dependencies: [pygments, restructuredtext_lint]
33
33
  - repo: https://github.com/pre-commit/mirrors-mypy
34
- rev: v1.17.0
34
+ rev: v1.17.1
35
35
  hooks:
36
36
  - id: mypy
37
37
  files: ^(src/)
@@ -1,14 +1,36 @@
1
- 2.3.1
1
+ 2.3.3
2
2
  -----
3
3
 
4
- **Release**: 2025-08-01
4
+ **Release**: 2025-08-06
5
5
 
6
6
  * Fix type annotations:
7
+
7
8
  * ``oop_ext.foundation.weak_ref.IsWeakProxy``.
8
9
  * ``oop_ext.foundation.weak_ref.IsWeakRef``.
9
10
  * ``oop_ext.foundation.weak_ref.GetWeakProxy``.
10
11
 
11
12
 
13
+
14
+ 2.3.2
15
+ -----
16
+
17
+ **Release**: 2025-08-05
18
+
19
+ **Broken Release**
20
+
21
+ This version contains the incorrect patch -- nothing serious, just the ``master`` version instead of the expected patch.
22
+
23
+
24
+ 2.3.1
25
+ -----
26
+
27
+ **Release**: 2025-08-01
28
+
29
+ **Broken Release**
30
+
31
+ This version contains the incorrect patch -- nothing serious, just the ``master`` version instead of the expected patch.
32
+
33
+
12
34
  2.3.0
13
35
  -----
14
36
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oop-ext
3
- Version: 2.3.1
3
+ Version: 2.3.3
4
4
  Summary: OOP Extensions is a set of utilities for object oriented programming not found on Python's standard library.
5
5
  Home-page: http://github.com/ESSS/oop-ext
6
6
  Author: ESSS
@@ -179,17 +179,39 @@ Note that the VERSION should follow the semantic versioning as ``X.Y.Z`` (e.g. `
179
179
  5. Merge the PR.
180
180
 
181
181
 
182
- 2.3.1
182
+ 2.3.3
183
183
  -----
184
184
 
185
- **Release**: 2025-08-01
185
+ **Release**: 2025-08-06
186
186
 
187
187
  * Fix type annotations:
188
+
188
189
  * ``oop_ext.foundation.weak_ref.IsWeakProxy``.
189
190
  * ``oop_ext.foundation.weak_ref.IsWeakRef``.
190
191
  * ``oop_ext.foundation.weak_ref.GetWeakProxy``.
191
192
 
192
193
 
194
+
195
+ 2.3.2
196
+ -----
197
+
198
+ **Release**: 2025-08-05
199
+
200
+ **Broken Release**
201
+
202
+ This version contains the incorrect patch -- nothing serious, just the ``master`` version instead of the expected patch.
203
+
204
+
205
+ 2.3.1
206
+ -----
207
+
208
+ **Release**: 2025-08-01
209
+
210
+ **Broken Release**
211
+
212
+ This version contains the incorrect patch -- nothing serious, just the ``master`` version instead of the expected patch.
213
+
214
+
193
215
  2.3.0
194
216
  -----
195
217
 
@@ -354,13 +354,16 @@ def GetRealObj(obj: Any) -> Any:
354
354
  return obj
355
355
 
356
356
 
357
- def GetWeakProxy(obj: T) -> weakref.ProxyType[T]:
357
+ def GetWeakProxy(obj: T) -> T:
358
358
  """
359
359
  :param obj: This is the object we want to get as a proxy
360
360
  :return:
361
- Returns the object as a proxy (if it is still not already a proxy or a weak ref, in which case the passed object
362
- is returned itself)
361
+ Returns the object as a proxy. If already a proxy, return it unchanged.
363
362
  """
363
+ # Note: we need to ignore the typing errors below because otherwise the type-checker will
364
+ # complain that we return `ProxyType[T]` instead of `T`. The problem is that the type-checker is not
365
+ # smart enough to understand that a function receiving `T` can also receive a `ProxyType[T]` without problems,
366
+ # but it does not. For this reason, we have to lie here and say this functions returns `T`.
364
367
  if obj is None:
365
368
  return obj # type:ignore[return-value]
366
369
 
@@ -373,9 +376,9 @@ def GetWeakProxy(obj: T) -> weakref.ProxyType[T]:
373
376
  if inspect.ismethod(real_obj):
374
377
  return WeakMethodProxy(real_obj) # type:ignore[return-value]
375
378
 
376
- return weakref.proxy(real_obj)
379
+ return weakref.proxy(real_obj) # type:ignore[return-value]
377
380
 
378
- return obj
381
+ return obj # type:ignore[return-value]
379
382
 
380
383
 
381
384
  # Keep the same lambda for weak-refs (to be reused among all places that use GetWeakRef(None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oop-ext
3
- Version: 2.3.1
3
+ Version: 2.3.3
4
4
  Summary: OOP Extensions is a set of utilities for object oriented programming not found on Python's standard library.
5
5
  Home-page: http://github.com/ESSS/oop-ext
6
6
  Author: ESSS
@@ -179,17 +179,39 @@ Note that the VERSION should follow the semantic versioning as ``X.Y.Z`` (e.g. `
179
179
  5. Merge the PR.
180
180
 
181
181
 
182
- 2.3.1
182
+ 2.3.3
183
183
  -----
184
184
 
185
- **Release**: 2025-08-01
185
+ **Release**: 2025-08-06
186
186
 
187
187
  * Fix type annotations:
188
+
188
189
  * ``oop_ext.foundation.weak_ref.IsWeakProxy``.
189
190
  * ``oop_ext.foundation.weak_ref.IsWeakRef``.
190
191
  * ``oop_ext.foundation.weak_ref.GetWeakProxy``.
191
192
 
192
193
 
194
+
195
+ 2.3.2
196
+ -----
197
+
198
+ **Release**: 2025-08-05
199
+
200
+ **Broken Release**
201
+
202
+ This version contains the incorrect patch -- nothing serious, just the ``master`` version instead of the expected patch.
203
+
204
+
205
+ 2.3.1
206
+ -----
207
+
208
+ **Release**: 2025-08-01
209
+
210
+ **Broken Release**
211
+
212
+ This version contains the incorrect patch -- nothing serious, just the ``master`` version instead of the expected patch.
213
+
214
+
193
215
  2.3.0
194
216
  -----
195
217
 
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