mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
PY-12132 Support ABC classes (pep-3119)
A class containing at least one method declared with `abstractmethod` decorator that hasn’t been overridden yet cannot be instantiated. Also report instantiation of classes that directly inherit ABC or have metaclass set to ABCMeta. GitOrigin-RevId: 55cb4dc90c55ddc63991a4c3f6b50b4e34a3b4bd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f560f56c33
commit
22454fca8f
@@ -882,8 +882,9 @@ INSP.NAME.method.may.be.static=Method is not declared static
|
||||
INSP.method.may.be.static=Method <code>#ref</code> may be 'static'
|
||||
|
||||
# PyAbstractClassInspection
|
||||
INSP.NAME.abstract.class=Class must implement all abstract methods
|
||||
INSP.NAME.abstract.class=Invalid abstract class definition and usages
|
||||
INSP.abstract.class.class.must.implement.all.abstract.methods=Class {0} must implement all abstract methods
|
||||
INSP.abstract.class.cannot.instantiate.abstract.class=Cannot instantiate abstract class ''{0}''
|
||||
|
||||
#PyAssignmentToLoopOrWithParameterInspection
|
||||
INSP.NAME.assignment.to.loop.or.with.parameter=Assignments to 'for' loop or 'with' statement parameter
|
||||
|
||||
Reference in New Issue
Block a user