Update pyright version to 1.1.350 (#11501)

If you're reading about this commit in an auto-generated changelog: this is an internal change that should have no impact on how these stubs are understood by static-analysis tools such as type checkers or IDEs
This commit is contained in:
Nikita Sobolev
2024-02-29 13:14:39 +03:00
committed by GitHub
parent 7b4c751abb
commit 675ab38ab7
8 changed files with 85 additions and 71 deletions

View File

@@ -384,7 +384,7 @@ else:
# While this is true in general, here it's sort-of okay to have a covariant subclass,
# since the only reason why `asyncio.Future` is invariant is the `set_result()` method,
# and `asyncio.Task.set_result()` always raises.
class Task(Future[_T_co]): # type: ignore[type-var] # pyright: ignore[reportGeneralTypeIssues]
class Task(Future[_T_co]): # type: ignore[type-var] # pyright: ignore[reportInvalidTypeArguments]
if sys.version_info >= (3, 12):
def __init__(
self,