blob: ef5d3b34e8bf664d07126528be8a7ff195b7f527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
""""Tests for return type checkers for protocol methods with ellipsis function body"""
# pylint: disable=missing-class-docstring
from typing import Any, Iterator
class MyClass:
"""The "invalid-*-returned" messages shouldn't be emitted for stub functions
Original issue: https://github.com/PyCQA/pylint/issues/4736"""
def __len__(self) -> int:
...
def __hash__(self) -> int:
...
def __index__(self) -> int:
...
def __iter__(self) -> Iterator[Any]:
...
def __bool__(self) -> bool:
...
def __repr__(self) -> object:
...
def __str__(self) -> str:
...
def __bytes__(self) -> bytes:
...
def __length_hint__(self) -> int:
...
def __format__(self, format_spec: str) -> str:
...
def __getnewargs__(self) -> tuple:
...
def __getnewargs_ex__(self) -> tuple:
...
|