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

test: Follow the new behavior of typing.get_type_hints() since py311 #10232

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Mar 2, 2022

Feature or Bugfix

  • Refactoring

Purpose

Since python-3.11, `typing.get_type_hints()` will not add Optional[t] to
type annotations even if a default value for function argument is None.

refs: python/cpython#30304 (bpo-46195)
@tk0miya tk0miya added this to the 4.4.1 milestone Mar 2, 2022
@tk0miya tk0miya merged commit ce5537c into sphinx-doc:4.4.x Mar 2, 2022
@tk0miya tk0miya deleted the get_type_hints_since_py311 branch March 2, 2022 17:23
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2022
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.

1 participant