Skip to content

Update type hints in handlers/base_logger.py to to Python 3.10+ syntax#3505

Open
rwtarpit wants to merge 7 commits intopytorch:masterfrom
rwtarpit:master
Open

Update type hints in handlers/base_logger.py to to Python 3.10+ syntax#3505
rwtarpit wants to merge 7 commits intopytorch:masterfrom
rwtarpit:master

Conversation

@rwtarpit
Copy link

@rwtarpit rwtarpit commented Feb 3, 2026

Related to #3481 for handlers/base_logger.py

@github-actions github-actions bot added the module: handlers Core Handlers module label Feb 3, 2026
@rwtarpit rwtarpit requested a review from vfdev-5 February 3, 2026 13:16
raise TypeError(
"Argument optimizer should be torch.optim.Optimizer or has attribute 'param_groups' as list/tuple, "
f"but given {type(optimizer)}"
(f"but given {type(optimizer)}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(f"but given {type(optimizer)}")
f"but given {type(optimizer)}"


def close(self) -> None:
pass

No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should be reverted as well

@rwtarpit rwtarpit requested a review from vfdev-5 February 3, 2026 16:09
Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@rwtarpit rwtarpit force-pushed the master branch 2 times, most recently from e53bbde to 264c6dc Compare February 4, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: handlers Core Handlers module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants