Skip to content

Commit

Permalink
add BytesIO alias to fix missing references in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nulano committed Jan 20, 2024
1 parent 4aa3341 commit 23b3e92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 23b3e92

Please sign in to comment.