Injectinator 0.4.0__tar.gz → 0.4.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Injectinator
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Very simple dependency injection
5
5
  Author-email: Chris Read <centurix@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "Injectinator"
3
- version = "0.4.0"
3
+ version = "0.4.2"
4
4
  description = "Very simple dependency injection"
5
5
  authors = [
6
6
  {name = "Chris Read",email = "centurix@gmail.com"},
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Injectinator
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Very simple dependency injection
5
5
  Author-email: Chris Read <centurix@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,9 @@
1
1
  import functools # This is only needed for debugging, you can remove
2
2
 
3
3
  def injectinator(func):
4
+ """
5
+ Very simple dependency injection wrapper that supplies concrete instances of specified class definitions from a functions specification
6
+ """
4
7
  @functools.wraps(func) # This is only needed for debugging, you can remove
5
8
  def wrapper(*args, **kwargs):
6
9
  replacements = dict(zip(
@@ -5,6 +5,9 @@ P = ParamSpec("P")
5
5
  R = TypeVar("R")
6
6
 
7
7
  def injectinator(func: Callable[P, R]) -> Callable[P, R]:
8
+ """
9
+ Very simple dependency injection wrapper that supplies concrete instances of specified class definitions from a functions specification
10
+ """
8
11
  @functools.wraps(func) # This is only needed for debugging, you can remove
9
12
  def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:
10
13
  replacements = dict(zip(
File without changes
File without changes