[python] @final usage rules on overloaded methods are the same for .py and .pyi stubs

GitOrigin-RevId: 6ef9baffcca14f0c4dd35183ef211b4a365ddb9b
This commit is contained in:
Petr
2025-05-17 18:32:24 +00:00
committed by intellij-monorepo-bot
parent 6f6e27c500
commit e69f69a10d
11 changed files with 82 additions and 82 deletions
@@ -1002,9 +1002,7 @@ INSP.dunder.slots.class.object.attribute.read.only=''{0}'' object attribute ''{1
# PyFinalInspection
INSP.NAME.final.classes.methods.and.variables=Invalid usages of final classes, methods, and variables
INSP.final.super.classes.are.marked.as.final.and.should.not.be.subclassed={0} {1,choice,1#is|2#are} marked as ''@final'' and should not be subclassed
INSP.final.final.should.be.placed.on.first.overload='@final' should be placed on the first overload
INSP.final.method.marked.as.final.should.not.be.overridden=''{0}'' is marked as ''@final'' and should not be overridden
INSP.final.final.should.be.placed.on.implementation='@final' should be placed on the implementation
INSP.final.final.could.not.be.mixed.with.abstract.decorators='Final' could not be mixed with abstract decorators
INSP.final.final.class.could.not.contain.abstract.methods='Final' class could not contain abstract methods
INSP.final.no.need.to.mark.method.in.final.class.as.final=No need to mark method in 'Final' class as '@final'
@@ -1052,7 +1050,9 @@ INSP.overloads.at.least.two.overload.decorated.functions.must.be.present=At leas
INSP.overloads.use.staticmethod.inconsistently=Overloads use @staticmethod inconsistently
INSP.overloads.use.classmethod.inconsistently=Overloads use @classmethod inconsistently
INSP.overloads.override.should.be.placed.on.the.implementation='@override' should be placed on the implementation
INSP.overloads.final.should.be.placed.on.the.implementation='@final' should be placed on the implementation
INSP.overloads.override.should.be.placed.only.on.the.first.overload='@override' should be placed only on the first overload
INSP.overloads.final.should.be.placed.only.on.the.first.overload='@final' should be placed only on the first overload
# PyOverridesInspection
INSP.NAME.invalid.usages.of.override.decorator=Invalid usages of @override decorator