mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 03:11:16 +08:00
Update pyright CI test to use the latest version of pyright (1.1.118). (#5092)
Update pyright CI test to use the latest version of pyright (1.1.118). Enable all but one of pyright's strictest checks. Add a "# type: ignore" to `__new__` method in `weakref.KeyRef` because it uses a non-standard name for the `cls` parameter, which is flagged as an error by pyright. Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -88,8 +88,9 @@ class object:
|
||||
__annotations__: Dict[str, Any]
|
||||
@property
|
||||
def __class__(self: _T) -> Type[_T]: ...
|
||||
# Ignore errors about type mismatch between property getter and setter
|
||||
@__class__.setter
|
||||
def __class__(self, __type: Type[object]) -> None: ... # noqa: F811
|
||||
def __class__(self, __type: Type[object]) -> None: ... # type: ignore # noqa: F811
|
||||
def __init__(self) -> None: ...
|
||||
def __new__(cls) -> Any: ...
|
||||
def __setattr__(self, name: str, value: Any) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user