Skip to content

Commit

Permalink
Improve docs wrt type hints and models (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-hilden committed Jul 19, 2021
1 parent 11d7268 commit ef6853e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/src/conf.py
Expand Up @@ -15,7 +15,6 @@
'sphinx.ext.autosummary',
'sphinx.ext.extlinks',
'sphinx.ext.napoleon',
'sphinx_autodoc_typehints',
'sphinx_rtd_theme',
]

Expand All @@ -26,6 +25,9 @@
'members': True,
'show-inheritance': True,
}
autodoc_typehints = 'description'
autoclass_content = 'both'
python_use_unqualified_type_names = True

html_theme = 'sphinx_rtd_theme'
extlinks = {
Expand Down
4 changes: 4 additions & 0 deletions docs/src/release_notes.rst
Expand Up @@ -12,6 +12,10 @@ Changed
- Add fields to :class:`Request` and change their meaning to be in line with
the new HTTPX interface (:issue:`250`)

Added
*****
- Improved documentation for type hints and response models (:issue:`109`)

3.7.1 (2021-05-04)
------------------
Fixed
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -35,9 +35,8 @@

extras_require = {
'docs': [
'sphinx~=3.1',
'sphinx~=4.0',
'sphinx-rtd-theme',
'sphinx-autodoc-typehints~=1.11'
],
'tests': [
'coverage',
Expand Down

0 comments on commit ef6853e

Please sign in to comment.