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.
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.github/workflows/deploy.yml +1 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.pre-commit-config.yaml +1 -1
- {oop_ext-2.3.1 → oop_ext-2.3.3}/CHANGELOG.rst +24 -2
- {oop_ext-2.3.1 → oop_ext-2.3.3}/PKG-INFO +25 -3
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/weak_ref.py +8 -5
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/PKG-INFO +25 -3
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.codecov.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.editorconfig +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.gitattributes +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.github/dependabot.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.github/workflows/test.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.gitignore +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.isort.cfg +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.project +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.pydevproject +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/.readthedocs.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/CONTRIBUTING.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/LICENSE +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/README.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/api.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/callbacks.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/changelog.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/conf.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/contributing.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/img/logo.png +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/index.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/installation.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/interfaces.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/readme.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/docs/requirements.txt +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/environment.devenv.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/mypy.ini +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/pyproject.toml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/setup.cfg +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/setup.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/sonar-project.properties +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/_type_checker_fixture.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/conftest.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_cached_method.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_decorators.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_immutable.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_is_frozen.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_odict.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_singleton.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_types.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/_tests/test_weak_ref.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/cached_method.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_callbacks.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_priority_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_shortcuts.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_priority_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_single_call_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_typed_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_typed_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/single_call_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/compat.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/decorators.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/exceptions.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/immutable.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/is_frozen.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/odict.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/singleton.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/types_.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/interface/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/interface/_adaptable_interface.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/interface/_interface.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/interface/_tests/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/interface/_tests/test_interface.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/py.typed +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/SOURCES.txt +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/dependency_links.txt +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/not-zip-safe +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/requires.txt +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext.egg-info/top_level.txt +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.3}/tox.ini +0 -0
|
@@ -1,14 +1,36 @@
|
|
|
1
|
-
2.3.
|
|
1
|
+
2.3.3
|
|
2
2
|
-----
|
|
3
3
|
|
|
4
|
-
**Release**: 2025-08-
|
|
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.
|
|
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.
|
|
182
|
+
2.3.3
|
|
183
183
|
-----
|
|
184
184
|
|
|
185
|
-
**Release**: 2025-08-
|
|
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) ->
|
|
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
|
|
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.
|
|
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.
|
|
182
|
+
2.3.3
|
|
183
183
|
-----
|
|
184
184
|
|
|
185
|
-
**Release**: 2025-08-
|
|
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
|
|
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
|
{oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_priority_callback.py
RENAMED
|
File without changes
|
{oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_single_call_callback.py
RENAMED
|
File without changes
|
{oop_ext-2.3.1 → oop_ext-2.3.3}/src/oop_ext/foundation/callback/_tests/test_typed_callback.py
RENAMED
|
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
|