Files
sphinx/tests
Takeshi KOMIYA 7ca5248057 Fix #8775: Avoid the crash of autodoc caused by type union operator
The type union operator (PEP-604) causes autodoc crashed in python 3.9
or below because of the syntax is not suppoerted yet in the interpreters.
Internally, `typing.get_type_hints()` raises TypeError on evaluating the
annotation by BitOr operator for types.

To avoid the crash, this adds a fallback not to evaluate the annotations
and keep as is.  As a side effect, `autodoc_type_aliases` will not work
for the modules and classes that uses type union operator for their
annotations.
2021-02-01 21:21:56 +09:00
..
2020-11-20 19:43:02 +01:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-22 21:40:27 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-23 08:57:36 +01:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-23 16:41:59 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00
2021-01-01 13:40:48 +09:00