Bump pyright to v1.1.360 (#11810)

This commit is contained in:
Alex Waygood
2024-04-24 13:09:16 +01:00
committed by GitHub
parent 29db988c0a
commit d0f2be92ab
20 changed files with 100 additions and 46 deletions

View File

@@ -183,7 +183,7 @@ if sys.version_info >= (3, 10):
@overload
def __init__(self: nullcontext[None], enter_result: None = None) -> None: ...
@overload
def __init__(self: nullcontext[_T], enter_result: _T) -> None: ...
def __init__(self: nullcontext[_T], enter_result: _T) -> None: ... # pyright: ignore[reportInvalidTypeVarUse] #11780
def __enter__(self) -> _T: ...
def __exit__(self, *exctype: Unused) -> None: ...
async def __aenter__(self) -> _T: ...
@@ -195,7 +195,7 @@ else:
@overload
def __init__(self: nullcontext[None], enter_result: None = None) -> None: ...
@overload
def __init__(self: nullcontext[_T], enter_result: _T) -> None: ...
def __init__(self: nullcontext[_T], enter_result: _T) -> None: ... # pyright: ignore[reportInvalidTypeVarUse] #11780
def __enter__(self) -> _T: ...
def __exit__(self, *exctype: Unused) -> None: ...