Skip to content

Extend bad-dunder-method name to permit __index__ #8282

@burgholzer

Description

@burgholzer

https://docs.astral.sh/ruff/rules/bad-dunder-method-name/ currently flags the standard python dunder method __index__ (see https://docs.python.org/3.12/library/operator.html#operator.__index__ ) as invalid.

If you deem it reasonable, I am happy to submit a PR adding it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions