Skip to content

Commit

Permalink
Upgrade mypy to 0.991. (#235)
Browse files Browse the repository at this point in the history
### Description

Upgrades `mypy` to `0.991`.
  • Loading branch information
ueshin authored Dec 10, 2022
1 parent 8c855fa commit 6251711
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ flaky
freezegun==0.3.9
ipdb
mock>=1.3.0
mypy==0.971
mypy==0.991
pytest-csv
pytest-dotenv
pytest-xdist
Expand Down
1 change: 0 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
strict_optional = True
no_implicit_optional = True
disallow_untyped_defs = True
show_error_codes = True

[mypy-tests.*]
disallow_untyped_defs = False
Expand Down
4 changes: 3 additions & 1 deletion tests/integration/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,9 @@ def get_manifest():
if os.path.exists(path):
with open(path, "rb") as fp:
manifest_mp = fp.read()
manifest: Manifest = Manifest.from_msgpack(manifest_mp)
manifest: Manifest = Manifest.from_msgpack( # type: ignore[annotation-unchecked]
manifest_mp
)
return manifest
else:
return None
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ basepython = python3
commands =
{envpython} -m black --config black.ini --check .
{envpython} -m flake8 --select=E,W,F --ignore=E203,W503 --max-line-length=100 .
{envpython} -m mypy --config-file mypy.ini --namespace-packages --explicit-package-bases dbt tests
{envpython} -m mypy --config-file mypy.ini --explicit-package-bases dbt tests
passenv =
DBT_*
PYTEST_ADDOPTS
Expand Down

0 comments on commit 6251711

Please sign in to comment.