-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for no-member of properties. Close #844
- Loading branch information
1 parent
4b31fc5
commit 1e84b02
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# pylint: disable=missing-docstring,too-few-public-methods,invalid-overridden-method | ||
# https://github.com/PyCQA/pylint/issues/844 | ||
class Parent: | ||
def __init__(self): | ||
self.__thing = 'foo' | ||
|
||
@property | ||
def thing(self): | ||
return self.__thing | ||
|
||
|
||
class Child(Parent): | ||
@Parent.thing.getter | ||
def thing(self): | ||
return super(Child, self).thing + '!' | ||
|
||
|
||
print(Child().thing) |