python-injection 0.10.11__py3-none-any.whl → 0.10.12.post0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  from abc import ABC, abstractmethod
2
2
  from collections.abc import Iterator
3
- from contextlib import ExitStack, contextmanager, suppress
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
- with suppress(KeyError):
44
- self.__listeners.remove(listener)
45
-
43
+ self.__listeners.discard(listener)
46
44
  return self
injection/_core/module.py CHANGED
@@ -518,7 +518,7 @@ class Module(Broker, EventListener):
518
518
  self.injectable(
519
519
  lambda: ~lazy_instance,
520
520
  inject=False,
521
- on=on,
521
+ on=(wp, on),
522
522
  mode=mode,
523
523
  )
524
524
  return wp
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-injection
3
- Version: 0.10.11
3
+ Version: 0.10.12.post0
4
4
  Summary: Fast and easy dependency injection framework.
5
5
  Home-page: https://github.com/100nm/python-injection
6
6
  License: MIT
@@ -2,13 +2,13 @@ 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=JYwe528g0uzUSo7l-iXjzuziYk4xlO6Cakkm83xkg38,1290
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
9
9
  injection/_core/common/type.py,sha256=TQTD-f_rnAHS0VgfkWxNFU8HAWPvkAktNDQ9_23JLHM,1705
10
10
  injection/_core/hook.py,sha256=_TcwhF_DONfcoBz58RxVLeA950Rs8wtZSLGepZwGBRk,3009
11
- injection/_core/module.py,sha256=JvawpGSt-TFLzUHOV79HtgUEDQ_lxv7H1xwwARaOwyw,25294
11
+ injection/_core/module.py,sha256=zvYqUIAV9saTYGBuKbR4tNk2AFrMxyFxNPmvMMmKoe4,25300
12
12
  injection/exceptions.py,sha256=-5Shs7R5rctQXhpMLfcjiMBCzrtFWxC88qETUIHz57s,692
13
13
  injection/integrations/__init__.py,sha256=NYLcstr4ESdLj326LlDub143z6JGM1z1pCOVWhBXK10,304
14
14
  injection/integrations/blacksheep.py,sha256=yO5gLb_l4W3bNPFt-v2qWIL9R8PNon4JmOxQEHdi-5o,923
@@ -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.11.dist-info/METADATA,sha256=eI7fVqQkkS20p6JS596mL6GyYd8EJdjaCgmEmxO5lWE,3111
21
- python_injection-0.10.11.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
22
- python_injection-0.10.11.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,,