Skip to content

Add an option to check for misspellings in special functions #3038

Closed
@kunaltyagi

Description

@kunaltyagi

Is your feature request related to a problem? Please describe

Currently, the errors in naming of special functions aren't checked. Normal functions act as interfaces and they are readily checked. But for special functions, it becomes hard to confirm that the code written will work and many times, the eyes gloss over things like number of underscores (too many or too few, hard to distinguish), spelling (should that be invert or inv, eq or equal or equals).

class abc:
    __init_(self):
        pass
    ___neg__(self):
        pass
    __inv__(self):
        pass

Describe the solution you'd like

Since the special functions are limited, testing for spellings (and offering the suggestions as a plugin) would be ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CheckersRelated to a checkerEnhancement ✨Improvement to a componentGood first issueFriendly and approachable by new contributorsHacktoberfestHelp wanted 🙏Outside help would be appreciated, good for new contributorsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions