From 4b9c726fc671187e055f1f604235a7c64d35132e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 22 Dec 2024 19:02:36 -0800 Subject: [PATCH] Bump mypy from 1.13.0 to 1.14.0 (#854) * Bump mypy from 1.13.0 to 1.14.0 Bumps [mypy](https://github.com/python/mypy) from 1.13.0 to 1.14.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.13.0...v1.14.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * ignore double fabric imports --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Shcheklein --- pyproject.toml | 2 +- src/dvclive/fabric.py | 2 +- src/dvclive/lightning.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5ed4e778..4438740a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,7 +61,7 @@ tests = [ ] dev = [ "dvclive[all,tests]", - "mypy==1.13.0", + "mypy==1.14.0", "types-PyYAML" ] mmcv = ["mmcv"] diff --git a/src/dvclive/fabric.py b/src/dvclive/fabric.py index 0e0903df..f8c7c8b4 100644 --- a/src/dvclive/fabric.py +++ b/src/dvclive/fabric.py @@ -11,7 +11,7 @@ ) from lightning.fabric.utilities.rank_zero import rank_zero_only except ImportError: - from lightning_fabric.loggers.logger import Logger, rank_zero_experiment + from lightning_fabric.loggers.logger import Logger, rank_zero_experiment # type: ignore[assignment] from lightning_fabric.utilities.logger import ( _add_prefix, _convert_params, diff --git a/src/dvclive/lightning.py b/src/dvclive/lightning.py index dc159526..884ac167 100644 --- a/src/dvclive/lightning.py +++ b/src/dvclive/lightning.py @@ -13,7 +13,7 @@ from lightning.pytorch.utilities import rank_zero_only except ImportError: from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint # type: ignore[assignment] - from pytorch_lightning.loggers.logger import Logger + from pytorch_lightning.loggers.logger import Logger # type: ignore[assignment] from pytorch_lightning.utilities import rank_zero_only try: