Python 3.12 introduced the typing.override decorator, and typing_extensions backported it.
Overridden method signatures are out of the dev's control when subclassing an external library, so you can't just redefine a parameter as keyword-only. And if the base class is internal, the warning will already trigger in the original method definition anyway.
Python 3.12 introduced the
typing.override
decorator, andtyping_extensions
backported it.Overridden method signatures are out of the dev's control when subclassing an external library, so you can't just redefine a parameter as keyword-only. And if the base class is internal, the warning will already trigger in the original method definition anyway.
Similar idea to PyCQA/pep8-naming#217