Updated deprecated typing imports with equivalents for Python 3.9+ (#38546)

* Replace deprecated typing imports with collections.abc equivalents for Python 3.9+

* Fixed code quality

---------

Co-authored-by: Yih-Dar <2521628+ydshieh@users.noreply.github.com>
This commit is contained in:
Sai-Suraj-27
2025-06-04 22:27:23 +05:30
committed by GitHub
parent 8e1266de2b
commit a510be20f3
140 changed files with 234 additions and 141 deletions

View File

@@ -31,8 +31,9 @@ ocalhost:29504 test_train.py
import logging
import os
from collections.abc import Iterable
from contextlib import nullcontext
from typing import Dict, Iterable, Optional
from typing import Dict, Optional
import torch
import torch.distributed as dist