summaryrefslogtreecommitdiff
path: root/doc/data/messages/o/overridden-final-method/good.py
blob: d95b975e358cbe6286fd55411e0c9a90df11cb95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from typing import final


class Animal:
    @final
    def can_breathe(self):
        return True


class Cat(Animal):
    def can_purr(self):
        return True