Apply ufmt linter to all py files under torchgen (#81570)

Previous batches:
* https://github.com/pytorch/pytorch/pull/81285
* https://github.com/pytorch/pytorch/pull/81335

We have multiple batches here to minimize merge conflicts and reviewing process. Once everything has been formatted by ufmt (black+usort), the current black linter will be removed.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/81570
Approved by: https://github.com/ezyang
This commit is contained in:
Huy Do
2022-07-16 03:52:25 +00:00
committed by PyTorch MergeBot
parent d625637c7c
commit a4647cc1fa
33 changed files with 434 additions and 432 deletions

View File

@ -1,11 +1,11 @@
#!/usr/bin/env python3
import os
from pathlib import Path
from itertools import chain
from pathlib import Path
from torch.jit._shape_functions import (
shape_compute_graph_mapping,
bounded_compute_graph_mapping,
shape_compute_graph_mapping,
)
SHAPE_HEADER = r"""