Skip to content

Feature request: ignore FBT001 and FBT002 on methods marked with @override #11

@ivanlonel

Description

@ivanlonel

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.

Similar idea to PyCQA/pep8-naming#217

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions