[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ mypy Public
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

Analyze descriptor methods as if they're methods, not functions #8365

Merged
merged 2 commits into from Feb 21, 2020

Conversation

Copy link
Contributor

janverb commented Feb 4, 2020

When __get__ and __set__ were implicitly called they were analyzed without taking the type of the descriptor into account. That meant that they were only visible to plugins as function calls with unclear
names.

Copy link
Collaborator

This seems reasonable and I'm happy to merge it. Can a test be written, though?

Copy link
Contributor Author

janverb commented Feb 10, 2020

Of course. Thank you for reminding me, I ended up finding an issue with how I did it.

janverb added 2 commits Feb 11, 2020
When __get__ and __set__ were implicitly called they were analyzed
without taking the type of the descriptor into account. That meant
that they were only visible to plugins as function calls with unclear
names.
janverb force-pushed the fix-descriptor-methods branch from dd4bab4 to facfd9b Compare Feb 11, 2020
msullivan merged commit 8b3b1d8 into python:master Feb 21, 2020
janverb deleted the fix-descriptor-methods branch Feb 24, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants