[BE]: Enable ruff's flake8-PYI rules (#110830)

Enable Flake8-PYI rules codebase wide. Most of the rules already match our codebase style, the remaining ones that were not autofixed I have added to the pyproject.toml to be enabled in a later PR.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/110830
Approved by: https://github.com/albanD
This commit is contained in:
Aaron Gokaslan
2023-10-09 16:37:23 +00:00
committed by PyTorch MergeBot
parent 306b2284f2
commit 144cda7f06
3 changed files with 16 additions and 3 deletions

View File

@ -185,7 +185,7 @@ class FileManager:
def write(
self,
filename: str,
env_callable: Callable[[], Union[str, Union[str, Dict[str, Any]]]],
env_callable: Callable[[], Union[str, Dict[str, Any]]],
) -> None:
self.write_with_template(filename, filename, env_callable)