Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit 7e37995

Browse files
committed
Bump mypy, stop ignoring _all_ missing imports
Also, fix an incorrect type annotation for tabulate
1 parent ae63ade commit 7e37995

5 files changed

Lines changed: 27 additions & 23 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ __pycache__
44
.cache
55
.coverage
66
htmlcov
7+
*.egg-info

cli_ui/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,7 @@ def tabs(num: int) -> str:
397397

398398

399399
def info_table(
400-
data: Any,
401-
*,
402-
headers: Union[str, Dict[str, str], Sequence[str]] = (),
403-
fileobj: FileObj = sys.stdout
400+
data: Any, *, headers: Union[str, Sequence[str]] = (), fileobj: FileObj = sys.stdout
404401
) -> None:
405402
colored_data = list()
406403
plain_data = list()

mypy.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ no_implicit_optional = true
1111
warn_redundant_casts = true
1212
warn_unused_ignores = true
1313
warn_return_any = true
14-
ignore_missing_imports = true
14+
ignore_missing_imports = false
1515
pretty = true
16+
17+
[mypy-colorama.*]
18+
ignore_missing_imports = true
19+
20+
[mypy-unidecode]
21+
ignore_missing_imports = true

poetry.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ghp-import = "^0.5.5"
1818

1919
# linters
2020
black = { version = "19.10b0", python = '^3.6' }
21-
mypy = "0.740"
21+
mypy = "^0.770"
2222
pyflakes = "2.1.1"
2323

2424
# tests

0 commit comments

Comments
 (0)