Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine DECHAUME committed Nov 15, 2021
1 parent 42caa49 commit be7d4c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions sphinx/ext/autodoc/typehints.py
Expand Up @@ -19,8 +19,7 @@
from sphinx.application import Sphinx
from sphinx.util import inspect, typing


__ANNOTATION_KIND_TO_PARAM_PREFIX = {
__ANNOTATION_KIND_TO_PARAM_PREFIX: Dict[Any, str] = {
inspect.Parameter.VAR_POSITIONAL: '*',
inspect.Parameter.VAR_KEYWORD: '**',
}
Expand Down
7 changes: 2 additions & 5 deletions tests/test_ext_autodoc_configs.py
Expand Up @@ -914,7 +914,6 @@ def test_autodoc_typehints_description_without_documented_init(app):
' None\n' == context)



@pytest.mark.sphinx('text', testroot='ext-autodoc',
confoverrides={'autodoc_typehints': "description"})
def test_autodoc_typehints_description_with_documented_init(app):
Expand Down Expand Up @@ -980,8 +979,7 @@ def test_autodoc_typehints_description_with_documented_init_no_undoc(app):
'\n'
' * **args** (*int*) -- Some integer\n'
'\n'
' * **kwargs** (*int*) -- Some integer\n'
== context)
' * **kwargs** (*int*) -- Some integer\n' == context)


@pytest.mark.sphinx('text', testroot='ext-autodoc',
Expand Down Expand Up @@ -1018,8 +1016,7 @@ def test_autodoc_typehints_description_without_documented_init_no_undoc(app):
' * **kwargs** (*int*) --\n'
'\n'
' Return type:\n'
' None\n'
== context)
' None\n' == context)


@pytest.mark.sphinx('text', testroot='ext-autodoc',
Expand Down

0 comments on commit be7d4c4

Please sign in to comment.