Skip to content

replace typing hints in ignite/metrics/gpu_info.py#3580

Merged
vfdev-5 merged 1 commit intopytorch:masterfrom
steaphenai:refactor/typing-hints-gpu-info
Feb 23, 2026
Merged

replace typing hints in ignite/metrics/gpu_info.py#3580
vfdev-5 merged 1 commit intopytorch:masterfrom
steaphenai:refactor/typing-hints-gpu-info

Conversation

@steaphenai
Copy link
Copy Markdown
Contributor

Refs #3481

Description: Replace old typing hints with Python 3.10+ syntax in ignite/metrics/gpu_info.py.

  • Union[A, B]A | B
  • Dict, List, Tupledict, list, tuple

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)

@github-actions github-actions bot added the module: metrics Metrics module label Feb 23, 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 23, 2026 15:28
@vfdev-5 vfdev-5 added this pull request to the merge queue Feb 23, 2026
Merged via the queue into pytorch:master with commit 8678d3f Feb 23, 2026
24 checks passed
@steaphenai steaphenai deleted the refactor/typing-hints-gpu-info branch March 9, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: metrics Metrics module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants