Set min supported Python version to 3.8 (#93155)

Also, grep for `if sys.version_info .cond. (3, 8)` and replaces them with appropriate action.

This is a last in a series of PRs that moved CI/CD away from testing PyTorch behavior against Python-3.7.

Fixes https://github.com/pytorch/pytorch/issues/80513

Pull Request resolved: https://github.com/pytorch/pytorch/pull/93155
Approved by: https://github.com/huydhn
This commit is contained in:
Nikita Shulga
2023-01-29 18:28:46 +00:00
committed by PyTorch MergeBot
parent 0dceaf07cd
commit 5976f0bdfe
31 changed files with 58 additions and 625 deletions

View File

@ -6,7 +6,7 @@
# files.
[mypy]
python_version = 3.7
python_version = 3.8
plugins = mypy_plugins/check_mypy_version.py
cache_dir = .mypy_cache/strict