Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better fix for f-strings in set_linter for py3.12 (pytorch#143725)
pytorch#143628 didn't handle a few cases right for example: ```py $ python3 tools/linter/adapters/set_linter.py torch/_inductor/scheduler.py torch/_inductor/scheduler.py:261:24: Builtin `set` is deprecated 259 | multiline=False, 260 | ) 261 | return f"{self}{data_str}" ^ 262 | 263 | def log_details(self) -> None: torch/_inductor/scheduler.py:261:33: Builtin `set` is deprecated 259 | multiline=False, 260 | ) 261 | return f"{self}{data_str}" ^ 262 | 263 | def log_details(self) -> None: ``` also multi-line fstrings Pull Request resolved: pytorch#143725 Approved by: https://github.com/yanboliang
- Loading branch information