Skip to content

Commit

Permalink
suppress PyRight/MyPy inconsistency (closes #142)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfischer2781 committed Jun 16, 2024
1 parent f9c80dd commit 1e5bbbb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion asyncstdlib/contextlib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ class nullcontext(AsyncContextManager[T]):
@overload
def __init__(self: nullcontext[None], enter_result: None = ...) -> None: ...
@overload
def __init__(self: nullcontext[T], enter_result: T) -> None: ...
def __init__(
self: nullcontext[T], # pyright: ignore[reportInvalidTypeVarUse]
enter_result: T,
) -> None: ...
async def __aenter__(self: nullcontext[T]) -> T: ...
async def __aexit__(
self,
Expand Down

0 comments on commit 1e5bbbb

Please sign in to comment.