Skip to content

Commit

Permalink
Attempt to remove fully qualified type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Aug 30, 2024
1 parent 6c35a50 commit ea7dd01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build']

# Sphinx 3.0+ required for:
# autodoc_typehints_description_target = "documented"
needs_sphinx = '4.0'
# Sphinx 4.4+ required for autodoc_typehints_format
needs_sphinx = '4.4'

nitpicky = True
nitpick_ignore = [
Expand Down Expand Up @@ -106,6 +105,7 @@
autodoc_member_order = 'bysource'
autodoc_typehints = 'description'
autodoc_typehints_description_target = 'documented'
autodoc_typehints_format = 'short'

# sphinx.ext.intersphinx
intersphinx_mapping = {
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ docs = [
"nbsphinx>=0.8.5",
# release versions missing files, must install from master
"pytorch-sphinx-theme",
# sphinx 4+ required for autodoc_typehints_description_target = documented
# sphinx 4.4+ required for autodoc_typehints_format
# sphinx 6+ is incompatible with pytorch-sphinx-theme
# https://github.com/pytorch/pytorch_sphinx_theme/issues/175
"sphinx>=4,<6",
"sphinx>=4.4,<6",
]
style = [
# mypy 0.900+ required for pyproject.toml support
Expand Down

0 comments on commit ea7dd01

Please sign in to comment.