summaryrefslogtreecommitdiff
path: root/tests/functional/r/regression/regression_4439.py
blob: 22162a7e9c7d7ce99ec8232daf0295d5248a1261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""AttributeError: 'Subscript' object has no attribute 'name' """
# 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 typing import Optional

from attr import attrib, attrs


@attrs()
class User:
    name: str = attrib()
    age: int = attrib()
    occupation = Optional[str] = attrib(default=None)  # [unsupported-assignment-operation]