diff --git a/docs/conf.py b/docs/conf.py index 9ae7ae605..3d6f480e0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -40,6 +40,11 @@ extensions = [ 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. # You can specify multiple suffix as a list of string: # source_suffix = ['.rst', '.md']