Skip to content

Commit

Permalink
Fixed mypy issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Jan 2, 2024
1 parent 220501a commit 5c94a79
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
14 changes: 7 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ crayons = "^0.4.0"
opencv-python = "^4.8.1.78"

[tool.poetry.group.dev.dependencies]
mypy = "^1.2.0"
mypy = "^1.8.0"
flake8 = "^6.0.0"
nose2 = "^0.12.0"
nose2 = "^0.14.0"
Sphinx = "^6.2.1"
pre-commit = "^3.6.0"

Expand All @@ -62,7 +62,7 @@ requires = ["poetry>=1.3.2"]
build-backend = "poetry.masonry.api"

[tool.mypy]
python_version = "3.10"
python_version = "3.12"
check_untyped_defs = true
ignore_errors = false
ignore_missing_imports = true
Expand Down
5 changes: 2 additions & 3 deletions tests/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ def test_shi_tomashi(self):
test_file_reshaped = test_file.reshape(
int(test_file.shape[0]), int(test_file.shape[1])
)
self.assertIsNone(
np.testing.assert_allclose(corners, test_file_reshaped, rtol=1e-0, atol=0)
)
res = np.testing.assert_allclose(corners, test_file_reshaped, rtol=1e-0, atol=0) # type: ignore
self.assertIsNone(res)

@staticmethod
def shi_tomashi_reconfigure(
Expand Down

0 comments on commit 5c94a79

Please sign in to comment.