Skip to content

Commit

Permalink
Fix mypy Type Error (#2854)
Browse files Browse the repository at this point in the history
* Fixed the mypy type error because of tensorboard_logger.py for the nightly version
  • Loading branch information
theory-in-progress authored Feb 10, 2023
1 parent 5d344a0 commit 89d2930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ignite/contrib/handlers/tensorboard_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def __init__(self, *args: Any, **kwargs: Any):
from tensorboardX import SummaryWriter
except ImportError:
try:
from torch.utils.tensorboard import SummaryWriter # type: ignore[no-redef]
from torch.utils.tensorboard import SummaryWriter
except ImportError:
raise ModuleNotFoundError(
"This contrib module requires either tensorboardX or torch >= 1.2.0. "
Expand Down

0 comments on commit 89d2930

Please sign in to comment.