Skip to content

Replace typing module hints with modern syntax in handlers core utils#3596

Open
Manimaran-tech wants to merge 5 commits intopytorch:masterfrom
Manimaran-tech:fix/typing-handlers-core-utils
Open

Replace typing module hints with modern syntax in handlers core utils#3596
Manimaran-tech wants to merge 5 commits intopytorch:masterfrom
Manimaran-tech:fix/typing-handlers-core-utils

Conversation

@Manimaran-tech
Copy link
Contributor

Description

Modernize type hints in ignite/handlers core utility files by replacing typing module imports (e.g., Optional, Union, Callable, Sequence) with Python 3.10+ built-in syntax (X | None, list[...], collections.abc).

Files changed:

Manimaran added 4 commits February 26, 2026 19:53
Fixes pytorch#3481
- Optional[int] -> int | None
- Remove unused typing import
Fixes pytorch#3481
- Optional[Events] -> Events | None
- Remove Optional from typing import
Fixes pytorch#3481
- Optional[Events] -> Events | None
- Move Callable to collections.abc
Fixes pytorch#3481
- Move Callable to collections.abc
- Remove unused Optional import
@github-actions github-actions bot added the module: handlers Core Handlers module label Feb 26, 2026
@Manimaran-tech
Copy link
Contributor Author

@aaishwarymishra i have created 11 pr as you told , i also checked the build issue in the other pr's they are related to Netlify i think it should be approved to continue ig

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 !

@vfdev-5 vfdev-5 enabled auto-merge February 26, 2026 15:19
auto-merge was automatically disabled February 26, 2026 15:40

Head branch was pushed to by a user without write access

@Manimaran-tech Manimaran-tech force-pushed the fix/typing-handlers-core-utils branch from 7e5e6e7 to 2de9201 Compare February 26, 2026 15:40
@vfdev-5 vfdev-5 enabled auto-merge February 26, 2026 22:09
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