Skip to content

Commit 611c663

Browse files
committed
Bump mypy version
1 parent 6a56d3a commit 611c663

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

repo_helper.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ version: '0.2.3'
1111
license: 'MIT'
1212
short_desc: 'Sphinx autodocumenter for pytest fixtures.'
1313

14-
mypy_version: "0.910"
1514
use_whey: true
1615
sphinx_html_theme: furo
1716
preserve_custom_theme: true

sphinx_autofixture/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class FixtureDecoratorFinder(ast.NodeVisitor):
5656
:class:`ast.NodeVisitor` for finding pytest fixtures.
5757
"""
5858

59-
def __init__(self):
59+
def __init__(self) -> None:
6060

6161
#: Is the function a fixture?
6262
self.is_fixture = False
@@ -187,7 +187,7 @@ def add_directive_header(self, sig: str = '') -> None:
187187
)
188188

189189

190-
def validate_config(app: Sphinx, config: Config):
190+
def validate_config(app: Sphinx, config: Config) -> None:
191191
r"""
192192
Validate the provided configuration values.
193193
@@ -202,7 +202,7 @@ def validate_config(app: Sphinx, config: Config):
202202
rst_prolog = StringList(rst_prolog)
203203
rst_prolog.append(nbsp_sub)
204204

205-
config.rst_prolog = str(rst_prolog) # type: ignore
205+
config.rst_prolog = str(rst_prolog) # type: ignore[attr-defined]
206206

207207

208208
def setup(app: Sphinx) -> Dict[str, Any]:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ basepython = python3.6
111111
ignore_errors = True
112112
changedir = {toxinidir}
113113
deps =
114-
mypy==0.910
114+
mypy==0.942
115115
-r{toxinidir}/tests/requirements.txt
116116
-r{toxinidir}/stubs.txt
117117
commands = mypy sphinx_autofixture tests {posargs}

0 commit comments

Comments
 (0)