mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
306b2284f2
commit
144cda7f06
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user