diff --git a/pyproject.toml b/pyproject.toml index e18e772..c089b7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ [build-system] requires = [ - "setuptools == 84.1.0", + "setuptools == 84.2.1", "setuptools_scm[toml] == 10.3.4", "frequenz-repo-config[lib] == 0.19.0", ] @@ -42,7 +42,7 @@ email = "floss@frequenz.com" [project.optional-dependencies] dev-flake8 = [ - "flake8 == 7.4.1", + "flake8 == 7.5.0", "flake8-datetimez == 26.8.1", "flake8-docstrings == 1.7.0", "flake8-pyproject == 1.2.4", # For reading the flake8 config from pyproject.toml @@ -57,31 +57,31 @@ dev-mkdocs = [ "mkdocs-gen-files == 0.6.1", "mkdocs-literate-nav == 0.6.3", "mkdocs-macros-plugin == 1.5.0", - "mkdocs-material == 9.7.7", + "mkdocs-material == 9.8.0", "mkdocstrings[python] == 1.0.8", "mkdocstrings-python == 2.0.10", "frequenz-repo-config[lib] == 0.19.0", ] dev-mypy = [ - "mypy == 2.3.1", - "types-Markdown == 3.10.2.20260712", + "mypy == 2.4.1", + "types-Markdown == 3.11.2.20261029", # For checking the noxfile, docs/ script, and tests "frequenz-quantities[dev-mkdocs,dev-noxfile,dev-pytest,marshmallow]", ] -dev-noxfile = ["nox == 2026.8.17", "frequenz-repo-config[lib] == 0.19.0"] +dev-noxfile = ["nox == 2026.10.20", "frequenz-repo-config[lib] == 0.19.0"] dev-pylint = [ # dev-pytest already defines a dependency to pylint because of the examples # For checking the noxfile, docs/ script, and tests "frequenz-quantities[dev-mkdocs,dev-noxfile,dev-pytest,marshmallow]", ] dev-pytest = [ - "pytest == 9.1.1", - "pylint == 4.0.9", # We need this to check for the examples + "pytest == 9.2.0", + "pylint == 4.1.3", # We need this to check for the examples "frequenz-repo-config[extra-lint-examples] == 0.19.0", - "pytest-mock == 3.16.0", + "pytest-mock == 3.17.0", "pytest-asyncio == 1.4.1", "async-solipsism == 0.10", - "hypothesis == 6.168.3", + "hypothesis == 6.170.14", "frequenz-quantities[marshmallow]", ] diff --git a/src/frequenz/quantities/_energy.py b/src/frequenz/quantities/_energy.py index 6c416e7..17fd932 100644 --- a/src/frequenz/quantities/_energy.py +++ b/src/frequenz/quantities/_energy.py @@ -95,7 +95,7 @@ def as_megawatt_hours(self) -> float: """ return self._base_value / 1e6 - def __mul__(self, other: float | Percentage) -> Self: + def __mul__(self, other: float | Percentage, /) -> Self: """Scale this energy by a scalar or percentage. Args: