Skip to content

Commit

Permalink
Fix typo in @Inject decorator overload default value
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirVondukr committed Oct 19, 2023
1 parent f6c46fb commit 97f068d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aioinject/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _T:
def inject(
func: Callable[_P, _T],
*,
inject_method: InjectMethod = InjectMethod.container,
inject_method: InjectMethod = InjectMethod.context,
) -> Callable[_P, _T]:
...


@overload
def inject(
*,
inject_method: InjectMethod = InjectMethod.container,
inject_method: InjectMethod = InjectMethod.context,
) -> Callable[[Callable[_P, _T]], Callable[_P, _T]]:
...

Expand Down

0 comments on commit 97f068d

Please sign in to comment.