[2/N] Apply ruff UP035 check in torch files#164054
[2/N] Apply ruff UP035 check in torch files#164054cyyever wants to merge 2 commits intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/164054
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 9ec62a8 with merge base 8239ba4 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
0c6249b to
11a4cfb
Compare
11a4cfb to
3179ff3
Compare
|
@pytorchbot merge |
|
@pytorchbot merge -r |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
|
Successfully rebased |
2234c43 to
9ec62a8
Compare
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: Commit 3179ff3 was HEAD when comment 3344466374 was posted but now the latest commit on the PR is 9ec62a8. Please re-issue the merge command to merge the latest commit. Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
) This is the result of applying the ruff `UP035` check. `Callable` is imported from `collections.abc` instead of `typing`. This PR is the follow-up of #164054. Pull Request resolved: #164104 Approved by: https://github.com/Skylion007
This is the result of applying the ruff
UP035check.Callableis imported fromcollections.abcinstead oftyping.TypeAliasis also imported fromtyping.This PR is the follow-up of #163947.
cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @pragupta @msaroufim @dcci @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @jerryzh168