Skip to content

replace typing hints in ignite/distributed/auto.py#3558

Merged
vfdev-5 merged 3 commits intopytorch:masterfrom
omkar-334:refactor3
Feb 24, 2026
Merged

replace typing hints in ignite/distributed/auto.py#3558
vfdev-5 merged 3 commits intopytorch:masterfrom
omkar-334:refactor3

Conversation

@omkar-334
Copy link
Copy Markdown
Contributor

Part of #3481

@github-actions github-actions bot added the module: distributed Distributed module label Feb 20, 2026
@omkar-334
Copy link
Copy Markdown
Contributor Author

nice, tests are passing. I think the cases where a class is used as a type hint string, we need to use from __future__ import annotations and convert the string to the class.

For example,

"_MpDeviceLoader"

becomes

_MpDeviceLoader

@vfdev-5
Copy link
Copy Markdown
Collaborator

vfdev-5 commented Feb 20, 2026

I'm also ok with "_MpDeviceLoader". Which python version it starts working with _MpDeviceLoader without quotes?

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 24, 2026 14:23
@vfdev-5 vfdev-5 added this pull request to the merge queue Feb 24, 2026
Merged via the queue into pytorch:master with commit bcef49a Feb 24, 2026
19 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: distributed Distributed module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants