python-injection 0.10.11__tar.gz → 0.10.12.post0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. {python_injection-0.10.11 → python_injection-0.10.12.post0}/PKG-INFO +1 -1
  2. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/_core/common/event.py +2 -4
  3. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/_core/module.py +1 -1
  4. {python_injection-0.10.11 → python_injection-0.10.12.post0}/pyproject.toml +1 -1
  5. {python_injection-0.10.11 → python_injection-0.10.12.post0}/README.md +0 -0
  6. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/__init__.py +0 -0
  7. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/__init__.pyi +0 -0
  8. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/_core/__init__.py +0 -0
  9. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/_core/common/__init__.py +0 -0
  10. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/_core/common/invertible.py +0 -0
  11. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/_core/common/lazy.py +0 -0
  12. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/_core/common/threading.py +0 -0
  13. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/_core/common/type.py +0 -0
  14. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/_core/hook.py +0 -0
  15. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/exceptions.py +0 -0
  16. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/integrations/__init__.py +0 -0
  17. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/integrations/blacksheep.py +0 -0
  18. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/integrations/fastapi.py +0 -0
  19. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/py.typed +0 -0
  20. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/testing/__init__.py +0 -0
  21. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/testing/__init__.pyi +0 -0
  22. {python_injection-0.10.11 → python_injection-0.10.12.post0}/injection/utils.py +0 -0
@@ -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
@@ -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
@@ -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
  [tool.poetry]
2
2
  name = "python-injection"
3
- version = "0.10.11"
3
+ version = "0.10.12.post0"
4
4
  description = "Fast and easy dependency injection framework."
5
5
  license = "MIT"
6
6
  authors = ["remimd"]