From 23b3e92a3ebc6a4bc4784cace093312b92bed434 Mon Sep 17 00:00:00 2001 From: Nulano Date: Sat, 20 Jan 2024 14:41:46 +0100 Subject: [PATCH] add BytesIO alias to fix missing references in docs --- docs/conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 9ae7ae605fd..3d6f480e0e0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -40,6 +40,11 @@ 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']