---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
---
YTT101 `sys.version[:3]` referenced (python3.10), use `sys.version_info`
 --> YTT101.py:6:7
  |
4 | print(sys.version)
5 |
6 | print(sys.version[:3])
  |       ^^^^^^^^^^^
7 | print(version[:3])
8 | print(v[:3])
  |

YTT101 `sys.version[:3]` referenced (python3.10), use `sys.version_info`
 --> YTT101.py:7:7
  |
6 | print(sys.version[:3])
7 | print(version[:3])
  |       ^^^^^^^
8 | print(v[:3])
  |

YTT101 `sys.version[:3]` referenced (python3.10), use `sys.version_info`
  --> YTT101.py:8:7
   |
 6 | print(sys.version[:3])
 7 | print(version[:3])
 8 | print(v[:3])
   |       ^
 9 |
10 | # the tool is timid and only flags certain numeric slices
   |
