mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 02:57:14 +08:00
Bump pyright to v1.1.360 (#11810)
This commit is contained in:
@@ -36,7 +36,7 @@ class Typed(Descriptor[_T], Generic[_T, _N]):
|
||||
|
||||
@overload
|
||||
def __init__(
|
||||
self: Typed[_T, Literal[True]],
|
||||
self: Typed[_T, Literal[True]], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
||||
name: str | None = None,
|
||||
*,
|
||||
expected_type: _ExpectedTypeParam[_T],
|
||||
@@ -45,7 +45,7 @@ class Typed(Descriptor[_T], Generic[_T, _N]):
|
||||
) -> None: ...
|
||||
@overload
|
||||
def __init__(
|
||||
self: Typed[_T, Literal[False]],
|
||||
self: Typed[_T, Literal[False]], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
||||
name: str | None = None,
|
||||
*,
|
||||
expected_type: _ExpectedTypeParam[_T],
|
||||
@@ -64,7 +64,7 @@ class Typed(Descriptor[_T], Generic[_T, _N]):
|
||||
class Convertible(Typed[_T, _N]):
|
||||
@overload
|
||||
def __init__(
|
||||
self: Convertible[_T, Literal[True]],
|
||||
self: Convertible[_T, Literal[True]], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
||||
name: str | None = None,
|
||||
*,
|
||||
expected_type: _ExpectedTypeParam[_T],
|
||||
@@ -72,7 +72,7 @@ class Convertible(Typed[_T, _N]):
|
||||
) -> None: ...
|
||||
@overload
|
||||
def __init__(
|
||||
self: Convertible[_T, Literal[False]],
|
||||
self: Convertible[_T, Literal[False]], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
||||
name: str | None = None,
|
||||
*,
|
||||
expected_type: _ExpectedTypeParam[_T],
|
||||
|
||||
@@ -25,7 +25,7 @@ class Nested(Descriptor[_T]):
|
||||
namespace: str | None
|
||||
# In usage, "Nested" is closed to "Typed" than "Descriptor", but doesn't use allow_none
|
||||
def __init__(
|
||||
self: Nested[_T],
|
||||
self: Nested[_T], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
||||
name: str | None = None,
|
||||
*,
|
||||
expected_type: _ExpectedTypeParam[_T],
|
||||
@@ -44,7 +44,7 @@ class Nested(Descriptor[_T]):
|
||||
class NestedValue(Nested[_T], Convertible[_T, _N]): # type: ignore[misc]
|
||||
@overload
|
||||
def __init__(
|
||||
self: NestedValue[_T, Literal[True]],
|
||||
self: NestedValue[_T, Literal[True]], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
||||
name: str | None = None,
|
||||
*,
|
||||
expected_type: _ExpectedTypeParam[_T],
|
||||
@@ -52,7 +52,7 @@ class NestedValue(Nested[_T], Convertible[_T, _N]): # type: ignore[misc]
|
||||
) -> None: ...
|
||||
@overload
|
||||
def __init__(
|
||||
self: NestedValue[_T, Literal[False]],
|
||||
self: NestedValue[_T, Literal[False]], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
||||
name: str | None = None,
|
||||
*,
|
||||
expected_type: _ExpectedTypeParam[_T],
|
||||
@@ -115,7 +115,7 @@ class NestedValue(Nested[_T], Convertible[_T, _N]): # type: ignore[misc]
|
||||
class NestedText(NestedValue[_T, _N]):
|
||||
@overload
|
||||
def __init__(
|
||||
self: NestedText[_T, Literal[True]],
|
||||
self: NestedText[_T, Literal[True]], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
||||
name: str | None = None,
|
||||
*,
|
||||
expected_type: _ExpectedTypeParam[_T],
|
||||
@@ -123,7 +123,7 @@ class NestedText(NestedValue[_T, _N]):
|
||||
) -> None: ...
|
||||
@overload
|
||||
def __init__(
|
||||
self: NestedText[_T, Literal[False]],
|
||||
self: NestedText[_T, Literal[False]], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
||||
name: str | None = None,
|
||||
*,
|
||||
expected_type: _ExpectedTypeParam[_T],
|
||||
|
||||
Reference in New Issue
Block a user