Skip to content

Commit 92fb23f

Browse files
committed
Update type hints.
1 parent ebfbf5a commit 92fb23f

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

consolekit/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
# stdlib
5050
import readline
5151
readline.set_history_length(0)
52-
# Ref: https://github.com/python/typeshed/pull/4688
53-
readline.set_auto_history(False) # type: ignore # TODO
52+
readline.set_auto_history(False)
5453
except (ImportError, AttributeError):
5554
# Attribute error on PyPy, ImportError on Windows etc.
5655
pass

consolekit/input.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@
9999
# stdlib
100100
import readline
101101
readline.set_history_length(0)
102-
# Ref: https://github.com/python/typeshed/pull/4688
103-
readline.set_auto_history(False) # type: ignore # TODO
102+
readline.set_auto_history(False)
104103
except (ImportError, AttributeError):
105104
# Attribute error on PyPy, ImportError on Windows etc.
106105
pass

consolekit/terminal_colours.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ def strip_ansi(value: str) -> str:
180180
"""
181181
Strip ANSI colour codes from the given string to return a plaintext output.
182182
183-
.. versionadded:: 1.1.0
184-
185183
:param value:
186184
"""
187185

repo_helper.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ extra_sphinx_extensions:
5353

5454
sphinx_conf_epilogue:
5555
- toctree_plus_types.add("fixture")
56+
57+
mypy_version: "0.800"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ignore_errors = True
105105
changedir = {toxinidir}
106106
extras = all
107107
deps =
108-
mypy==0.790
108+
mypy==0.800
109109
-r{toxinidir}/tests/requirements.txt
110110
-r{toxinidir}/stubs.txt
111111
commands = mypy consolekit tests {posargs}

0 commit comments

Comments
 (0)