We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f39efe commit 5ee5eb7Copy full SHA for 5ee5eb7
2 files changed
doc/data/messages/o/overridden-final-method/bad.py
@@ -1,12 +1,12 @@
1
from typing import final
2
3
4
-class Base:
+class Animal:
5
@final
6
- def my_method(self):
7
- pass
+ def can_breath(self):
+ return True
8
9
10
-class Subclass(Base):
11
- def my_method(self): # [overridden-final-method]
+class Cat(Animal):
+ def can_breath(self): # [overridden-final-method]
12
pass
doc/data/messages/o/overridden-final-method/good.py
+ def can_breathe(self):
- def my_other_method(self):
+ def can_purr(self):
0 commit comments