Skip to content

Conversation

@smithdc1
Copy link
Contributor

Subject: Improve type hints for imports dependent upon Python version.

Feature or Bugfix

  • Refactoring

Purpose

Mypy understands the use of sys.version_info within if/elif/else statements. See https://mypy.readthedocs.io/en/stable/common_issues.html#python-version-and-system-platform-checks

This allows for the removal of some # type: ignore comments.

Mypy understands the use of sys.version_info within if/elif/else statments. See https://mypy.readthedocs.io/en/stable/common_issues.html#python-version-and-system-platform-checks

This allows for the removal of some # type: ignore comments.
@AA-Turner AA-Turner merged commit 2a589c0 into sphinx-doc:master Dec 26, 2023
@AA-Turner
Copy link
Member

Thanks David!

A

@smithdc1 smithdc1 deleted the hints branch December 26, 2023 07:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2024
@AA-Turner AA-Turner added this to the 7.3.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.

3 participants