summaryrefslogtreecommitdiff
path: root/tests/functional/r/regression/regression_no_member_1078.py
blob: b7be27d3c5b0f00eb57c8b10f1213bc9c6294754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Make sure no-member is not emitted when modifying __doc__ via augmented assignment

https://github.com/PyCQA/pylint/issues/1078
"""
# pylint: disable=too-few-public-methods,missing-class-docstring
class Cls:
    def test(self):
        "a"

    test.__doc__ += "b"


print(Cls().test.__doc__)
print(Cls.test.__doc__)