blob: 13ab35b9a9b8b99ae83f3a108921bb43b767cafc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
"""
https://github.com/PyCQA/pylint/issues/4895
"""
# pylint: disable=missing-docstring
# Disabled because of a bug with pypy 3.8 see
# https://github.com/PyCQA/pylint/pull/7918#issuecomment-1352737369
# pylint: disable=multiple-statements
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
@dataclass
class Metric:
function: Callable[..., tuple[int, int]]
def update(self):
_, _ = self.function()
|