This PR improves the logic for detecting and eliminating ANSI color codes and other escape sequences introduced by Sphinx. ANSI escape sequences that are not natively known to Sphinx are not eliminated (e.g., VT100-specific functions).
is_serializable
test_build_html
html5lib
sphinx.testing.util.strip_escseq
in favor of
sphinx.util.console.strip_colors
slice
mypy
on
tests/test_addnodes.py
Project
pathlib.Path
and deprecate
sphinx.testing.path