Skip to content

Commit

Permalink
don't mess with contextmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
tungol committed Dec 14, 2024
1 parent 73661f6 commit ca85887
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stdlib/contextlib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ class _GeneratorContextManager(
self, type: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
) -> bool | None: ...

def contextmanager(
func: Callable[_P, Generator[_T_co, _SendT_contra, _ReturnT_co]]
) -> Callable[_P, _GeneratorContextManager[_T_co, _SendT_contra, _ReturnT_co]]: ...
def contextmanager(func: Callable[_P, Generator[_T_co]]) -> Callable[_P, _GeneratorContextManager[_T_co]]: ...

if sys.version_info >= (3, 10):
_AF = TypeVar("_AF", bound=Callable[..., Awaitable[Any]])
Expand Down

0 comments on commit ca85887

Please sign in to comment.