Skip to content

Commit

Permalink
ignore double fabric imports
Browse files Browse the repository at this point in the history
  • Loading branch information
shcheklein committed Dec 23, 2024
1 parent 9a5f804 commit e39826e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dvclive/fabric.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/dvclive/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e39826e

Please sign in to comment.