Skip to content

Commit

Permalink
xs - feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
biniona committed Oct 2, 2024
1 parent 234b9c9 commit da92ce9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion minject/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def __contains__(self, key: K_contra) -> bool:

class _AsyncContext(Protocol):
"""
Protocol for any object that can be used as an async context manager.
Protocol for an object that can be marked with the @async_context
decorator. This is any async context manager that return Self from
it's __aenter__ method.
"""

async def __aenter__(self: Self) -> Self:
Expand Down

0 comments on commit da92ce9

Please sign in to comment.