Revert "[lint] upgrade mypy to latest version"

This reverts commit 9bf18aab94943f5352604a39340ad57ad4d0c5a4.

Reverted https://github.com/pytorch/pytorch/pull/76753 on behalf of https://github.com/suo
This commit is contained in:
PyTorch MergeBot
2022-05-03 20:01:18 +00:00
parent 4bb5944133
commit 3d7428d9ac
29 changed files with 61 additions and 70 deletions

View File

@ -27,9 +27,9 @@ with open(Path(__file__).parent.parent.parent / fn('.'), "r") as f:
contents = f.read()
yaml = ruamel.yaml.YAML() # type: ignore[attr-defined]
yaml.preserve_quotes = True # type: ignore[assignment]
yaml.width = 1000 # type: ignore[assignment]
yaml.boolean_representation = ['False', 'True'] # type: ignore[attr-defined]
yaml.preserve_quotes = True
yaml.width = 1000
yaml.boolean_representation = ['False', 'True']
r = yaml.load(contents)
# Cuz ruamel's author intentionally didn't include conversion to string