Fix the case when abstract method could be overridden by ancestor field.

PY-26300 fixed.
This commit is contained in:
Semyon Proshev
2017-10-04 14:10:32 +03:00
parent 8f4c72aa4b
commit 855989a8be
3 changed files with 27 additions and 30 deletions
@@ -0,0 +1,13 @@
from abc import ABCMeta, abstractmethod
class BaseClass(metaclass=ABCMeta):
@property
@abstractmethod
def abstract_property(self):
pass
class SubClass(BaseClass):
abstract_property = 5
class SubSubClass(SubClass):
pass