mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[BE]: Update Ruff to 0.0.280 (#105724)
Removes unusued loop values in python dictionary iteration. Automated fix from Ruff master Pull Request resolved: https://github.com/pytorch/pytorch/pull/105724 Approved by: https://github.com/ezyang, https://github.com/janeyx99
This commit is contained in:
committed by
PyTorch MergeBot
parent
53a4b262d2
commit
6d43c89f37
2
.github/scripts/trymerge.py
vendored
2
.github/scripts/trymerge.py
vendored
@ -620,7 +620,7 @@ def get_ghstack_prs(repo: GitRepo, pr: "GitHubPR") -> List[Tuple["GitHubPR", str
|
||||
Get the open PRs in the stack that are below this PR. Throws error if any of the PRs are out of sync.
|
||||
"""
|
||||
assert pr.is_ghstack_pr()
|
||||
entire_stack: List[Tuple["GitHubPR", str]] = []
|
||||
entire_stack: List[Tuple[GitHubPR, str]] = []
|
||||
# For ghstack, cherry-pick commits based from origin
|
||||
orig_ref = f"{repo.remote}/{re.sub(r'/head$', '/orig', pr.head_ref())}"
|
||||
rev_list = repo.revlist(f"{pr.default_branch()}..{orig_ref}")
|
||||
|
Reference in New Issue
Block a user