Skip to content

Commit 1e5bbbb

Browse files
suppress PyRight/MyPy inconsistency (closes #142)
1 parent f9c80dd commit 1e5bbbb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

asyncstdlib/contextlib.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ class nullcontext(AsyncContextManager[T]):
7474
@overload
7575
def __init__(self: nullcontext[None], enter_result: None = ...) -> None: ...
7676
@overload
77-
def __init__(self: nullcontext[T], enter_result: T) -> None: ...
77+
def __init__(
78+
self: nullcontext[T], # pyright: ignore[reportInvalidTypeVarUse]
79+
enter_result: T,
80+
) -> None: ...
7881
async def __aenter__(self: nullcontext[T]) -> T: ...
7982
async def __aexit__(
8083
self,

0 commit comments

Comments
 (0)