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

Fix #8091: autodoc: AttributeError is raised on documenting an attribute #8092

Merged

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Aug 10, 2020

Feature or Bugfix

  • Bugfix

Purpose

@tk0miya tk0miya added this to the 3.3.0 milestone Aug 10, 2020
@tk0miya tk0miya force-pushed the 8085_AttributeError_on_get_type_hints branch from c74c422 to 071444e Compare August 10, 2020 07:23
… an attribute

Until Python 3.5.2, typing.get_type_hints() raises AttributeError if
given object does not have `__code__` attribute.  This handles the
exception not to crash building documents.

Note: The AttributeError was fixed at 3.5.3
refs: python/cpython@991d14f
@tk0miya tk0miya changed the title Fix #8085: autodoc: AttributeError is raised on documenting an attribute Fix #8091: autodoc: AttributeError is raised on documenting an attribute Aug 10, 2020
@tk0miya tk0miya force-pushed the 8085_AttributeError_on_get_type_hints branch from 071444e to bb09f92 Compare August 10, 2020 07:24
@tk0miya tk0miya modified the milestones: 3.3.0, 3.2.1 Aug 12, 2020
@tk0miya tk0miya merged commit e70a30e into sphinx-doc:3.2.x Aug 12, 2020
@tk0miya tk0miya deleted the 8085_AttributeError_on_get_type_hints branch August 12, 2020 14:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2021
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.

None yet

1 participant