Skip to content

Commit

Permalink
typing: wandb bug causes mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
nkemnitz committed Aug 30, 2024
1 parent 7748b1c commit d2834b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zetta_utils/training/lightning/trainers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def __init__(
def on_fit_start(self, trainer: pl.Trainer, pl_module: pl.LightningModule):
if not os.environ.get("WANDB_MODE", None) == "offline": # pragma: no cover
api_key = os.environ.get("WANDB_API_KEY", None)
wandb.login(key=api_key)
wandb.login(key=api_key) # type: ignore[attr-defined] # Bug in wandb 0.17.8 (#8217)

trainer.logger = WandbLogger(
project=self.exp_name,
Expand Down

0 comments on commit d2834b2

Please sign in to comment.