| import sys | |
| # TODO(boomanaiden154): Remove this flag once the minimum Python version for | |
| # the entire project has been bumped to 3.8. | |
| if sys.version_info > (3,8): | |
| config.available_features.add("python-38") | |
| # TODO(boomanaiden154): Remove this flag once we enable type checking in the | |
| # precommit CI. | |
| try: | |
| import pytype | |
| config.available_features.add("has-pytype") | |
| except: | |
| pass |