summaryrefslogtreecommitdiff
path: root/tests/functional/r/regression/regression_4439.py
blob: dd9c3925335f39da521ec181e4e12168351eed01 (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/PyCQA/pylint/pull/7918#issuecomment-1352737369
# pylint: disable=multiple-statements

from typing import Optional

from attr import attrib, attrs  # pylint: disable=import-error


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