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 #8157: autodoc: TypeError is raised when annotation has invalid __args__ #8264

Merged
merged 1 commit into from Oct 4, 2020

Commits on Oct 4, 2020

  1. Fix sphinx-doc#8157: autodoc: TypeError is raised when annotation has…

    … invalid __args__
    
    Typically, the __args__ attribute of type annotations is a tuple
    containing arguments for the types (ex. The __args__ of `List[int]` is
    `(int,)`).  But some kind of types has non tuple __args__ attribute.
    For example, `nptyping.NDArray` is one of them.
    
    This fixes the TypeError when the invalid __args__ attribute found.
    tk0miya committed Oct 4, 2020
    Configuration menu
    Copy the full SHA
    9a0a0f9 View commit details
    Browse the repository at this point in the history