summaryrefslogtreecommitdiff
path: root/tests/functional/u/unpacking/unpacking_non_sequence_py37.py
blob: 3a1e3700ac4bfbee13eef7149674aa9fb983f215 (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/pylint-dev/pylint/issues/4895
"""

# pylint: disable=missing-docstring

# Disabled because of a bug with pypy 3.8 see
# https://github.com/pylint-dev/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()