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

Improve type hints for sphinx.ext.autodoc.mock #12280

Merged
merged 7 commits into from
Apr 22, 2024

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Apr 15, 2024

Sub-PR of #12257.

This fixes an unrelated bug in the tests where the signature of the expectation changes according to whether typing.Any is present or not. I assumed in this PR that it should not be present at runtime since otherwise it might not be the case and I added a comment if someone mistakingly changed that assumption (it took me some time to figure out why it failed).

I also removed the file from the ruff exclusion list (since the changes are not that great) and from some mypy exclusion list as well.

@picnixz picnixz changed the title [cleanup] cleanup sphinx.ext.autodoc.mock [cleanup] cleanup sphinx.ext.autodoc.mock [part 2a] Apr 15, 2024
@AA-Turner AA-Turner changed the title [cleanup] cleanup sphinx.ext.autodoc.mock [part 2a] Improve sphinx.ext.autodoc.mock type hints Apr 22, 2024
@AA-Turner AA-Turner changed the title Improve sphinx.ext.autodoc.mock type hints Improve type hints for sphinx.ext.autodoc.mock Apr 22, 2024
@AA-Turner AA-Turner merged commit 48a345b into sphinx-doc:master Apr 22, 2024
21 of 23 checks passed
@picnixz picnixz deleted the cleanup/util-2a-mock-part branch April 23, 2024 10:20
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2024
@AA-Turner AA-Turner added this to the 7.4.0 milestone Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants