Skip to content

refactor: update type hints to use Python 3.10+ syntax in utils and …#3534

Merged
vfdev-5 merged 1 commit intopytorch:masterfrom
aaishwarymishra:refactor_early_stopping
Feb 13, 2026
Merged

refactor: update type hints to use Python 3.10+ syntax in utils and …#3534
vfdev-5 merged 1 commit intopytorch:masterfrom
aaishwarymishra:refactor_early_stopping

Conversation

@aaishwarymishra
Copy link
Copy Markdown
Collaborator

This pull request makes minor improvements to type annotations in the ignite/handlers/early_stopping.py file, updating the syntax to use modern Python features.

Type annotation updates:

  • Replaced use of Optional[float] with the more modern float | None syntax for the best_score attribute in the EarlyStopping handler.
  • Removed the unused import of Optional from the typing module.…clearml_logger

part of #3481

@github-actions github-actions bot added the module: handlers Core Handlers module label Feb 13, 2026
@vfdev-5 vfdev-5 changed the title urefactor: update type hints to use Python 3.10+ syntax in utils and … refactor: update type hints to use Python 3.10+ syntax in utils and … Feb 13, 2026
Copy link
Copy Markdown
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 !

@vfdev-5 vfdev-5 added this pull request to the merge queue Feb 13, 2026
Merged via the queue into pytorch:master with commit babedb8 Feb 13, 2026
24 checks passed
@aaishwarymishra aaishwarymishra deleted the refactor_early_stopping branch March 3, 2026 15:20
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