diff --git a/pyproject.toml b/pyproject.toml index 18f2e87..d718ccb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,20 +50,20 @@ dev-flake8 = [ ] dev-formatting = ["black == 25.9.0", "isort == 6.0.1"] dev-mkdocs = [ - "Markdown == 3.9", + "Markdown == 3.10.2", "black == 25.9.0", "mike == 2.1.3", "mkdocs-gen-files == 0.5.0", "mkdocs-literate-nav == 0.6.2", - "mkdocs-macros-plugin == 1.4.1", - "mkdocs-material == 9.6.23", + "mkdocs-macros-plugin == 1.5.0", + "mkdocs-material == 9.7.4", "mkdocstrings[python] == 1.0.3", "mkdocstrings-python == 2.0.3", "frequenz-repo-config[lib] == 0.14.0", ] dev-mypy = [ - "mypy == 1.18.2", - "types-Markdown == 3.9.0.20250906", + "mypy == 1.19.1", + "types-Markdown == 3.10.2.20260211", # For checking the noxfile, docs/ script, and tests "frequenz-quantities[dev-mkdocs,dev-noxfile,dev-pytest,marshmallow]", ] @@ -80,7 +80,7 @@ dev-pytest = [ "pytest-mock == 3.15.1", "pytest-asyncio == 1.3.0", "async-solipsism == 0.9", - "hypothesis == 6.142.5", + "hypothesis == 6.151.9", "frequenz-quantities[marshmallow]", ] diff --git a/tests/test_quantities.py b/tests/test_quantities.py index f316e04..3246330 100644 --- a/tests/test_quantities.py +++ b/tests/test_quantities.py @@ -801,7 +801,7 @@ def test_quantity_divided_by_float( ) -> None: """Test the division of all quantities by a float.""" hypothesis.assume(scalar != 0.0) - quantity = quantity_ctor(quantity_value) + quantity = quantity_ctor(quantity_value) # pylint: disable=unreachable expected_value = quantity.base_value / scalar print(f"{quantity=}, {expected_value=}") @@ -837,6 +837,7 @@ def test_quantity_divided_by_self( """Test the division of all quantities by a float.""" hypothesis.assume(divisor_value != 0.0) # We need to have float here because quantity /= divisor will return a float + # pylint: disable-next=unreachable quantity: Quantity | float = quantity_ctor(quantity_value) divisor = quantity_ctor(divisor_value) assert isinstance(quantity, Quantity)