blob: fea4f5ae6b3204d2ee6fb281196b49ff77155e2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
""" Test for a regression found in
https://bitbucket.org/logilab/astroid/issue/45/attributeerror-module-object-has-no#comment-11944673
"""
# pylint: disable=no-init, invalid-name, too-few-public-methods, redefined-outer-name
def decor(trop):
""" decorator """
return trop
class Foo:
""" Class """
@decor
def prop(self):
""" method """
return self
if __name__ == '__main__':
trop = Foo()
trop.prop = 42
|