Skip to content

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