Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
JukkaL opened this issue Jan 16, 2017 · 0 comments
Closed

Comments

@JukkaL
Copy link
Contributor

JukkaL commented Jan 16, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants