Skip to content

Modernize type hints to Python 3.10+ in handlers/checkpoint.py.#3515

Merged
vfdev-5 merged 1 commit intopytorch:masterfrom
atharva7-g:master
Feb 5, 2026
Merged

Modernize type hints to Python 3.10+ in handlers/checkpoint.py.#3515
vfdev-5 merged 1 commit intopytorch:masterfrom
atharva7-g:master

Conversation

@atharva7-g
Copy link
Copy Markdown
Contributor

Part of fix for #3481.

Updated type hinting in ignite/handlers/checkpoint.py.

Description:

  • Replace Union[X, Y] and Optional[X] with X | Y and X | None
  • Changed List -> list and Dict -> dict
  • Remove unused imports

All tests passed.


Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

Please let me know if any changes are required or if I have missed anything.

Thanks!

@github-actions github-actions bot added the module: handlers Core Handlers module label Feb 5, 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 enabled auto-merge February 5, 2026 15:59
@vfdev-5 vfdev-5 added this pull request to the merge queue Feb 5, 2026
Merged via the queue into pytorch:master with commit 797dc3e Feb 5, 2026
24 checks passed
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