gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / pylint / test / functional / abstract_abc_methods.py @ 745
History | View | Annotate | Download (447 Bytes)
1 |
""" This should not warn about `prop` being abstract in Child """
|
---|---|
2 |
# pylint: disable=too-few-public-methods, no-absolute-import,metaclass-assignment
|
3 |
|
4 |
import abc |
5 |
|
6 |
class Parent(object): |
7 |
"""Abstract Base Class """
|
8 |
__metaclass__ = abc.ABCMeta |
9 |
|
10 |
@property
|
11 |
@abc.abstractmethod
|
12 |
def prop(self): |
13 |
""" Abstract """
|
14 |
|
15 |
class Child(Parent): |
16 |
""" No warning for the following. """
|
17 |
prop = property(lambda self: 1) |