eevent 0.3.0__tar.gz → 0.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.
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: eevent
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Asyncio Events
|
|
5
5
|
Author: Erik Soma
|
|
6
6
|
Author-email: stillusingirc@gmail.com
|
|
7
|
-
Requires-Python: >=3.12
|
|
7
|
+
Requires-Python: >=3.12
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.12
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "eevent"
|
|
3
3
|
requires-python = ">=3.12"
|
|
4
|
-
|
|
5
|
-
[tool.poetry]
|
|
6
|
-
name = "eevent"
|
|
7
|
-
version = "0.3.0"
|
|
4
|
+
version = "0.3.2"
|
|
8
5
|
description = "Asyncio Events"
|
|
9
|
-
authors = [
|
|
6
|
+
authors = [
|
|
7
|
+
{name="Erik Soma", email="stillusingirc@gmail.com"}
|
|
8
|
+
]
|
|
10
9
|
|
|
11
10
|
[tool.poetry.dependencies]
|
|
12
11
|
python = "^3.12"
|
|
@@ -172,11 +172,15 @@ def auto_bind(cls: _C) -> _C:
|
|
|
172
172
|
return cls
|
|
173
173
|
on_event_then = {oet for oet in on_event_then if oet._owner is cls}
|
|
174
174
|
|
|
175
|
+
has_own_init = "__init__" in cls.__dict__
|
|
175
176
|
original_init = cls.__init__
|
|
176
177
|
|
|
177
178
|
@wraps(original_init)
|
|
178
179
|
def wrapped_init(self: _C, *args: Any, **kwargs: Any) -> None:
|
|
179
|
-
|
|
180
|
+
if has_own_init:
|
|
181
|
+
original_init(self, *args, **kwargs)
|
|
182
|
+
else:
|
|
183
|
+
super(cls, self).__init__(*args, **kwargs)
|
|
180
184
|
try:
|
|
181
185
|
auto_binds = self.__eevent_auto_binds__ # type: ignore
|
|
182
186
|
except AttributeError:
|
|
File without changes
|