python-injection 0.10.12__py3-none-any.whl → 0.10.12.post0__py3-none-any.whl
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.
- injection/_core/common/event.py +2 -4
- {python_injection-0.10.12.dist-info → python_injection-0.10.12.post0.dist-info}/METADATA +1 -1
- {python_injection-0.10.12.dist-info → python_injection-0.10.12.post0.dist-info}/RECORD +4 -4
- {python_injection-0.10.12.dist-info → python_injection-0.10.12.post0.dist-info}/WHEEL +0 -0
injection/_core/common/event.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
from abc import ABC, abstractmethod
|
2
2
|
from collections.abc import Iterator
|
3
|
-
from contextlib import ExitStack, contextmanager
|
3
|
+
from contextlib import ExitStack, contextmanager
|
4
4
|
from dataclasses import dataclass, field
|
5
5
|
from typing import ContextManager, Self
|
6
6
|
from weakref import WeakSet
|
@@ -40,7 +40,5 @@ class EventChannel:
|
|
40
40
|
return self
|
41
41
|
|
42
42
|
def remove_listener(self, listener: EventListener) -> Self:
|
43
|
-
|
44
|
-
self.__listeners.remove(listener)
|
45
|
-
|
43
|
+
self.__listeners.discard(listener)
|
46
44
|
return self
|
@@ -2,7 +2,7 @@ injection/__init__.py,sha256=6zHo40kXRsCruG23gMllEymAQ3crQkE_8Q-wV78iomU,769
|
|
2
2
|
injection/__init__.pyi,sha256=kYMUV96CusOcz9RvkgQiii0QaKwWz8160qeJ3mrwPgY,7308
|
3
3
|
injection/_core/__init__.py,sha256=VMGLfdu0gYh82mt7zS297rQ7CE_gHVy0gRdI8RY_ZLY,1361
|
4
4
|
injection/_core/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
injection/_core/common/event.py,sha256=
|
5
|
+
injection/_core/common/event.py,sha256=kev8WUESAXzMn11EJsbTcICaCvYiD556E6BOLvQ54s4,1243
|
6
6
|
injection/_core/common/invertible.py,sha256=QYXMqLrkAkz_7mq-jEYKtBr1CQ5aqzplP0FG9fS0g2Y,502
|
7
7
|
injection/_core/common/lazy.py,sha256=kCO1q4S6AdBhsP5RrihBJpgfeR4hxvMqSz1cpCgBdjo,1482
|
8
8
|
injection/_core/common/threading.py,sha256=OXm7L3p8c7O7eSkU-RTR7cobqIGMhuo-7gpDXsWKDNQ,214
|
@@ -17,6 +17,6 @@ injection/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
injection/testing/__init__.py,sha256=-C38gmZJwDtLDAWJhqiaosOZWQZwwFa1M34tODcrASs,747
|
18
18
|
injection/testing/__init__.pyi,sha256=6ZXbbS-9ppMdkxd03I6yBNurmR3Xw7sM_qiokibkLeY,386
|
19
19
|
injection/utils.py,sha256=gPcxGIdrGz4irbJXGTYPw33jNy8jg56u_c61eb1MBSE,1971
|
20
|
-
python_injection-0.10.12.dist-info/METADATA,sha256=
|
21
|
-
python_injection-0.10.12.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
22
|
-
python_injection-0.10.12.dist-info/RECORD,,
|
20
|
+
python_injection-0.10.12.post0.dist-info/METADATA,sha256=j-HFgbGdjn5FcPPiMuDYQc86HKuT9-r57CWa-xIkNFs,3117
|
21
|
+
python_injection-0.10.12.post0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
22
|
+
python_injection-0.10.12.post0.dist-info/RECORD,,
|
File without changes
|