add BytesIO alias to fix missing references in docs

This commit is contained in:
Nulano 2024-01-20 14:41:46 +01:00
parent 4aa3341d9a
commit 23b3e92a3e

View File

@ -40,6 +40,11 @@ extensions = [
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)} intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
# io.BytesIO is incorrectly converted to _io.BytesIO, this alias prevents that
autodoc_type_aliases = {
"BytesIO": "~io.BytesIO",
}
# The suffix(es) of source filenames. # The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string: # You can specify multiple suffix as a list of string:
# source_suffix = ['.rst', '.md'] # source_suffix = ['.rst', '.md']