I came across new override decorator for Python 3.12 and it looks like an extremely good practice.
I’m wondering if there is a way to make it “mandatory” to use? Perhaps there is some way to configure mypy
for it? Or at least configure linters to show warnings.
from typing import override
class Base:
def log_status(self) -> None:
...
class Sub(Base):
@override # I would like to make it mandatory while overriding a method
def log_status(self) -> None:
...