Skip to content

types.Union was renamed to types.UnionType on the HEAD of 3.10 #9512

@tk0miya

Description

@tk0miya

Describe the bug

Recently, types.Union was renamed to types.UnionType on the HEAD of 3.10 (refs: python/cpython#27342). After this change, sphinx-build has been crashed because of ImportError.

How to Reproduce

$ tox -e py310

Expected behavior

CI has passed.

Your project

N/A

Screenshots

No response

OS

Linux

Python version

HEAD of 3.10

Sphinx version

4.1.x

Sphinx extensions

No response

Extra tools

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions