mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
Fix the case when abstract method could be overridden by ancestor field.
PY-26300 fixed.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user