---
source: crates/ruff/src/rules/flake8_2020/mod.rs
---
YTT301.py:4:12: YTT301 `sys.version[0]` referenced (python10), use `sys.version_info`
  |
4 | from sys import version
5 | 
6 | py_major = sys.version[0]
  |            ^^^^^^^^^^^ YTT301
7 | py_major = version[0]
  |

YTT301.py:5:12: YTT301 `sys.version[0]` referenced (python10), use `sys.version_info`
  |
5 | py_major = sys.version[0]
6 | py_major = version[0]
  |            ^^^^^^^ YTT301
  |


