summaryrefslogtreecommitdiff
path: root/tests/functional/r/regression/regression_no_member_1078.py
blob: 191ba775103cd6d7161d1132a911017b10859ec2 (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/pylint-dev/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__)