python-injection 0.10.8__tar.gz → 0.10.8.post0__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.
Files changed (22) hide show
  1. {python_injection-0.10.8 → python_injection-0.10.8.post0}/PKG-INFO +1 -1
  2. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/integrations/fastapi.py +4 -2
  3. {python_injection-0.10.8 → python_injection-0.10.8.post0}/pyproject.toml +1 -1
  4. {python_injection-0.10.8 → python_injection-0.10.8.post0}/README.md +0 -0
  5. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/__init__.py +0 -0
  6. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/__init__.pyi +0 -0
  7. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/_core/__init__.py +0 -0
  8. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/_core/common/__init__.py +0 -0
  9. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/_core/common/event.py +0 -0
  10. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/_core/common/invertible.py +0 -0
  11. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/_core/common/lazy.py +0 -0
  12. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/_core/common/threading.py +0 -0
  13. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/_core/common/type.py +0 -0
  14. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/_core/hook.py +0 -0
  15. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/_core/module.py +0 -0
  16. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/exceptions.py +0 -0
  17. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/integrations/__init__.py +0 -0
  18. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/integrations/blacksheep.py +0 -0
  19. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/py.typed +0 -0
  20. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/testing/__init__.py +0 -0
  21. {python_injection-0.10.8 → python_injection-0.10.8.post0}/injection/testing/__init__.pyi +0 -0
  22. {python_injection-0.10.8 → python_injection-0.10.8.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.8
3
+ Version: 0.10.8.post0
4
4
  Summary: Fast and easy dependency injection framework.
5
5
  Home-page: https://github.com/100nm/python-injection
6
6
  License: MIT
@@ -39,8 +39,10 @@ class InjectionDependency[T]:
39
39
  self.__class = cls
40
40
 
41
41
  def __eq__(self, other: Any) -> bool:
42
- cls = type(self)
43
- return isinstance(other, cls) and hash(self) == hash(other)
42
+ if isinstance(other, type(self)):
43
+ return hash(self) == hash(other)
44
+
45
+ return NotImplemented
44
46
 
45
47
  def __hash__(self) -> int:
46
48
  return hash((self.__class,))
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-injection"
3
- version = "0.10.8"
3
+ version = "0.10.8.post0"
4
4
  description = "Fast and easy dependency injection framework."
5
5
  license = "MIT"
6
6
  authors = ["remimd"]