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

stubgen: fix missing property setter in semantic analysis mode #16303

Merged
merged 1 commit into from Oct 21, 2023

Conversation

hamdanal
Copy link
Contributor

The semantic analyzer treats properties as overloaded functions. This was previously ignored by stubgen but regressed in #15232.
This PR restores the original behavior.

Fixes #16300

The semantic analyzer treats properties as overloaded functions.
This was previously ignored by stubgen but regressed in python#15232.

Fixes python#16300
Comment on lines -672 to -673
print(self._all_)
print(self._toplevel_names)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These spurious prints are not related but they seem to be left here by mistake. They are polluting the stdout.
The blame points to #15770.

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JelleZijlstra JelleZijlstra merged commit 27c4b46 into python:master Oct 21, 2023
17 of 18 checks passed
@hamdanal hamdanal deleted the stubgen-property-setter branch October 21, 2023 20:32
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.

Stubgen *.pyi not generated with "setter"
2 participants