Skip to content

Make _operator and operator definitions of attrgetter etc. equivalent #835

Closed
@JukkaL

Description

@JukkaL

Currently stdlib/3/_operator.pyi defines attrgetter as a class, which causes problems with mypy (python/mypy#2383). However, operator.pyi has a different definition that mypy is okay with, so using the same definition in _operator.pyi seems reasonable.

itemgetter and methodcaller may be similar.

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