python-injection 0.2.2__tar.gz → 0.2.3__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.

Potentially problematic release.


This version of python-injection might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-injection
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Fast and easy dependency injection framework.
5
5
  Home-page: https://github.com/soon-app/injection
6
6
  License: MIT
@@ -117,7 +117,7 @@ def inject(fn=None):
117
117
 
118
118
  for name, parameter in signature.parameters.items():
119
119
  try:
120
- value = arguments[name]
120
+ value = arguments.pop(name)
121
121
  except KeyError:
122
122
  try:
123
123
  value = get_instance(parameter.annotation)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-injection"
3
- version = "0.2.2"
3
+ version = "0.2.3"
4
4
  description = "Fast and easy dependency injection framework."
5
5
  authors = ["remimd"]
6
6
  keywords = ["dependencies", "inject", "injection"]