Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions injection/_pkg.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,7 @@ class Module:
always be the same.
"""

def should_be_injectable(
self,
wrapped: Callable[..., Any] = ...,
/,
*,
on: type | Iterable[type] | UnionType = ...,
override: bool = ...,
):
def should_be_injectable(self, wrapped: type = ..., /, *, override: bool = ...):
"""
Decorator applicable to a class. It is used to specify whether an injectable
should be registered. Raise an exception at injection time if the class isn't
Expand Down