Skip to content

Commit

Permalink
annotate Injected.__class_getitem__ parameter and return with object
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirVondukr committed Sep 17, 2024
1 parent c571e4b commit 7a631d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aioinject/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Inject:
else:

class Injected(Generic[T]):
def __class_getitem__(cls, item): # noqa: ANN206, ANN001
def __class_getitem__(cls, item: object) -> object:
return Annotated[item, Inject]

0 comments on commit 7a631d8

Please sign in to comment.