mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[BE][Easy] enable ruff
rule PIE790
: unnecessary pass
statement (#133200)
This PR removes unnecessary `pass` statement. This is semanticly safe because the bytecode for the Python code does not change. Note that if there is a docstring in the function, a empty function does not need a `pass` statement as placeholder. Pull Request resolved: https://github.com/pytorch/pytorch/pull/133200 Approved by: https://github.com/malfet, https://github.com/eqy, https://github.com/kit1980
This commit is contained in:
committed by
PyTorch MergeBot
parent
57d1ffc512
commit
758a0a88a2
1
.github/scripts/gitutils.py
vendored
1
.github/scripts/gitutils.py
vendored
@ -445,7 +445,6 @@ def retries_decorator(
|
||||
print(
|
||||
f'Attempt {idx} of {num_retries} to call {f.__name__} failed with "{e}"'
|
||||
)
|
||||
pass
|
||||
return cast(T, rc)
|
||||
|
||||
return wrapper
|
||||
|
Reference in New Issue
Block a user