mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
Fixed mypy issue.
This commit is contained in:
parent
220501adbc
commit
5c94a790bc
3 changed files with 12 additions and 13 deletions
14
poetry.lock
generated
14
poetry.lock
generated
|
@ -441,18 +441,18 @@ setuptools = "*"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nose2"
|
name = "nose2"
|
||||||
version = "0.12.0"
|
version = "0.14.0"
|
||||||
description = "unittest2 with plugins, the successor to nose"
|
description = "unittest with plugins"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = "*"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "nose2-0.12.0-py2.py3-none-any.whl", hash = "sha256:da7eb5e3cbe2abb693a053e17b4fbefca98ea9ea79fc729b0b0f41e8b4196304"},
|
{file = "nose2-0.14.0-py3-none-any.whl", hash = "sha256:86993e9243c744df29c1ec237aecee33e2f59abb4bdd25a313f2e806b99228a1"},
|
||||||
{file = "nose2-0.12.0.tar.gz", hash = "sha256:956e79b9bd558ee08b6200c05ad2c76465b7e3860c0c0537686089285c320113"},
|
{file = "nose2-0.14.0.tar.gz", hash = "sha256:5c28d770a0b9a702862bd6c3755ba2cd2f7994dd518c982e5ce298d7f37466a4"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
coverage-plugin = ["coverage"]
|
coverage-plugin = ["coverage"]
|
||||||
dev = ["Sphinx", "mock", "sphinx-issues", "sphinx-rtd-theme"]
|
dev = ["Sphinx", "sphinx-issues", "sphinx-rtd-theme"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "numpy"
|
name = "numpy"
|
||||||
|
@ -996,4 +996,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = ">=3.9,<3.13"
|
python-versions = ">=3.9,<3.13"
|
||||||
content-hash = "96fd601171b20ab746b578859483cd9bd0764ed11542f352dc4d1ce78257a44c"
|
content-hash = "926741415f055b468c84701fbe0b6baca88306b4e5102c49ecf5a99eab9d974c"
|
||||||
|
|
|
@ -51,9 +51,9 @@ crayons = "^0.4.0"
|
||||||
opencv-python = "^4.8.1.78"
|
opencv-python = "^4.8.1.78"
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
mypy = "^1.2.0"
|
mypy = "^1.8.0"
|
||||||
flake8 = "^6.0.0"
|
flake8 = "^6.0.0"
|
||||||
nose2 = "^0.12.0"
|
nose2 = "^0.14.0"
|
||||||
Sphinx = "^6.2.1"
|
Sphinx = "^6.2.1"
|
||||||
pre-commit = "^3.6.0"
|
pre-commit = "^3.6.0"
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ requires = ["poetry>=1.3.2"]
|
||||||
build-backend = "poetry.masonry.api"
|
build-backend = "poetry.masonry.api"
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
python_version = "3.10"
|
python_version = "3.12"
|
||||||
check_untyped_defs = true
|
check_untyped_defs = true
|
||||||
ignore_errors = false
|
ignore_errors = false
|
||||||
ignore_missing_imports = true
|
ignore_missing_imports = true
|
||||||
|
|
|
@ -174,9 +174,8 @@ class TestGenerators(unittest.TestCase):
|
||||||
test_file_reshaped = test_file.reshape(
|
test_file_reshaped = test_file.reshape(
|
||||||
int(test_file.shape[0]), int(test_file.shape[1])
|
int(test_file.shape[0]), int(test_file.shape[1])
|
||||||
)
|
)
|
||||||
self.assertIsNone(
|
res = np.testing.assert_allclose(corners, test_file_reshaped, rtol=1e-0, atol=0) # type: ignore
|
||||||
np.testing.assert_allclose(corners, test_file_reshaped, rtol=1e-0, atol=0)
|
self.assertIsNone(res)
|
||||||
)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def shi_tomashi_reconfigure(
|
def shi_tomashi_reconfigure(
|
||||||
|
|
Loading…
Add table
Reference in a new issue