oop-ext 2.3.1__tar.gz → 2.3.2__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.2}/.pre-commit-config.yaml +1 -1
- {oop_ext-2.3.1 → oop_ext-2.3.2}/CHANGELOG.rst +9 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/PKG-INFO +10 -1
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/weak_ref.py +8 -5
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext.egg-info/PKG-INFO +10 -1
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.codecov.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.editorconfig +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.gitattributes +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.github/dependabot.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.github/workflows/deploy.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.github/workflows/test.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.gitignore +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.isort.cfg +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.project +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.pydevproject +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/.readthedocs.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/CONTRIBUTING.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/LICENSE +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/README.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/api.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/callbacks.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/changelog.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/conf.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/contributing.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/img/logo.png +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/index.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/installation.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/interfaces.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/readme.rst +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/docs/requirements.txt +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/environment.devenv.yml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/mypy.ini +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/pyproject.toml +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/setup.cfg +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/setup.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/sonar-project.properties +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/_type_checker_fixture.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/conftest.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/_tests/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/_tests/test_cached_method.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/_tests/test_decorators.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/_tests/test_immutable.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/_tests/test_is_frozen.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/_tests/test_odict.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/_tests/test_singleton.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/_tests/test_types.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/_tests/test_weak_ref.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/cached_method.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_callbacks.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_priority_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_shortcuts.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_tests/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_tests/test_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_tests/test_priority_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_tests/test_single_call_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_tests/test_typed_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_typed_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/single_call_callback.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/compat.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/decorators.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/exceptions.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/immutable.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/is_frozen.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/odict.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/singleton.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/types_.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/interface/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/interface/_adaptable_interface.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/interface/_interface.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/interface/_tests/__init__.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/interface/_tests/test_interface.py +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/py.typed +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext.egg-info/SOURCES.txt +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext.egg-info/dependency_links.txt +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext.egg-info/not-zip-safe +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext.egg-info/requires.txt +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext.egg-info/top_level.txt +0 -0
- {oop_ext-2.3.1 → oop_ext-2.3.2}/tox.ini +0 -0
|
@@ -1,9 +1,18 @@
|
|
|
1
|
+
2.3.2
|
|
2
|
+
-----
|
|
3
|
+
|
|
4
|
+
**Release**: 2025-08-05
|
|
5
|
+
|
|
6
|
+
* Changed ``GetWeakProxy`` return type to ``T``. Unfortunately type-checkers understand that ``ProxyType[T]`` is not the same as ``T``, generating a lot of false negatives.
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
2.3.1
|
|
2
10
|
-----
|
|
3
11
|
|
|
4
12
|
**Release**: 2025-08-01
|
|
5
13
|
|
|
6
14
|
* Fix type annotations:
|
|
15
|
+
|
|
7
16
|
* ``oop_ext.foundation.weak_ref.IsWeakProxy``.
|
|
8
17
|
* ``oop_ext.foundation.weak_ref.IsWeakRef``.
|
|
9
18
|
* ``oop_ext.foundation.weak_ref.GetWeakProxy``.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: oop-ext
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
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,12 +179,21 @@ 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.2
|
|
183
|
+
-----
|
|
184
|
+
|
|
185
|
+
**Release**: 2025-08-05
|
|
186
|
+
|
|
187
|
+
* Changed ``GetWeakProxy`` return type to ``T``. Unfortunately type-checkers understand that ``ProxyType[T]`` is not the same as ``T``, generating a lot of false negatives.
|
|
188
|
+
|
|
189
|
+
|
|
182
190
|
2.3.1
|
|
183
191
|
-----
|
|
184
192
|
|
|
185
193
|
**Release**: 2025-08-01
|
|
186
194
|
|
|
187
195
|
* Fix type annotations:
|
|
196
|
+
|
|
188
197
|
* ``oop_ext.foundation.weak_ref.IsWeakProxy``.
|
|
189
198
|
* ``oop_ext.foundation.weak_ref.IsWeakRef``.
|
|
190
199
|
* ``oop_ext.foundation.weak_ref.GetWeakProxy``.
|
|
@@ -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.2
|
|
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,12 +179,21 @@ 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.2
|
|
183
|
+
-----
|
|
184
|
+
|
|
185
|
+
**Release**: 2025-08-05
|
|
186
|
+
|
|
187
|
+
* Changed ``GetWeakProxy`` return type to ``T``. Unfortunately type-checkers understand that ``ProxyType[T]`` is not the same as ``T``, generating a lot of false negatives.
|
|
188
|
+
|
|
189
|
+
|
|
182
190
|
2.3.1
|
|
183
191
|
-----
|
|
184
192
|
|
|
185
193
|
**Release**: 2025-08-01
|
|
186
194
|
|
|
187
195
|
* Fix type annotations:
|
|
196
|
+
|
|
188
197
|
* ``oop_ext.foundation.weak_ref.IsWeakProxy``.
|
|
189
198
|
* ``oop_ext.foundation.weak_ref.IsWeakRef``.
|
|
190
199
|
* ``oop_ext.foundation.weak_ref.GetWeakProxy``.
|
|
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
|
|
File without changes
|
{oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_tests/test_priority_callback.py
RENAMED
|
File without changes
|
{oop_ext-2.3.1 → oop_ext-2.3.2}/src/oop_ext/foundation/callback/_tests/test_single_call_callback.py
RENAMED
|
File without changes
|
{oop_ext-2.3.1 → oop_ext-2.3.2}/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
|