---
source: crates/ruff_linter/src/rules/pyupgrade/mod.rs
---
UP036 [*] Version block is outdated for minimum Python version
 --> UP036_2.py:4:4
  |
2 | from sys import version_info
3 |
4 | if sys.version_info > (3, 5):
  |    ^^^^^^^^^^^^^^^^^^^^^^^^^
5 |     3+6
6 | else:
  |
help: Remove outdated version block
  |
3 |
  - if sys.version_info > (3, 5):
  -     3+6
  - else:
  -     3-5
4 + 3+6
5 |
  |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:9:4
   |
 7 |     3-5
 8 |
 9 | if version_info > (3, 5):
   |    ^^^^^^^^^^^^^^^^^^^^^
10 |     3+6
11 | else:
   |
help: Remove outdated version block
   |
8  |
   - if version_info > (3, 5):
   -     3+6
   - else:
   -     3-5
9  + 3+6
10 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:14:4
   |
12 |     3-5
13 |
14 | if sys.version_info >= (3,6):
   |    ^^^^^^^^^^^^^^^^^^^^^^^^^
15 |     3+6
16 | else:
   |
help: Remove outdated version block
   |
13 |
   - if sys.version_info >= (3,6):
   -     3+6
   - else:
   -     3-5
14 + 3+6
15 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:19:4
   |
17 |     3-5
18 |
19 | if version_info >= (3,6):
   |    ^^^^^^^^^^^^^^^^^^^^^
20 |     3+6
21 | else:
   |
help: Remove outdated version block
   |
18 |
   - if version_info >= (3,6):
   -     3+6
   - else:
   -     3-5
19 + 3+6
20 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:24:4
   |
22 |     3-5
23 |
24 | if sys.version_info < (3,6):
   |    ^^^^^^^^^^^^^^^^^^^^^^^^
25 |     3-5
26 | else:
   |
help: Remove outdated version block
   |
23 |
   - if sys.version_info < (3,6):
   -     3-5
   - else:
   -     3+6
24 + 3+6
25 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:29:4
   |
27 |     3+6
28 |
29 | if sys.version_info <= (3,5):
   |    ^^^^^^^^^^^^^^^^^^^^^^^^^
30 |     3-5
31 | else:
   |
help: Remove outdated version block
   |
28 |
   - if sys.version_info <= (3,5):
   -     3-5
   - else:
   -     3+6
29 + 3+6
30 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:34:4
   |
32 |     3+6
33 |
34 | if sys.version_info <= (3, 5):
   |    ^^^^^^^^^^^^^^^^^^^^^^^^^^
35 |     3-5
36 | else:
   |
help: Remove outdated version block
   |
33 |
   - if sys.version_info <= (3, 5):
   -     3-5
   - else:
   -     3+6
34 + 3+6
35 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:39:4
   |
37 |     3+6
38 |
39 | if sys.version_info >= (3, 5):
   |    ^^^^^^^^^^^^^^^^^^^^^^^^^^
40 |     pass
   |
help: Remove outdated version block
   |
38 |
   - if sys.version_info >= (3, 5):
   -     pass
39 + pass
40 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:42:4
   |
40 |     pass
41 |
42 | if sys.version_info < (3,0):
   |    ^^^^^^^^^^^^^^^^^^^^^^^^
43 |     pass
   |
help: Remove outdated version block
   |
41 |
   - if sys.version_info < (3,0):
   -     pass
42 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:46:8
   |
45 | if True:
46 |     if sys.version_info < (3,0):
   |        ^^^^^^^^^^^^^^^^^^^^^^^^
47 |         pass
   |
help: Remove outdated version block
   |
45 | if True:
   -     if sys.version_info < (3,0):
   -         pass
46 +     pass
47 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:49:4
   |
47 |         pass
48 |
49 | if sys.version_info < (3,0):
   |    ^^^^^^^^^^^^^^^^^^^^^^^^
50 |     pass
51 | elif False:
   |
help: Remove outdated version block
   |
48 |
   - if sys.version_info < (3,0):
   -     pass
   - elif False:
49 + if False:
50 |     pass
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_2.py:54:4
   |
52 |     pass
53 |
54 | if sys.version_info > (3,):
   |    ^^^^^^^^^^^^^^^^^^^^^^^
55 |     pass
56 | elif False:
   |
help: Remove outdated version block
   |
53 |
   - if sys.version_info > (3,):
   -     pass
   - elif False:
   -     pass
54 + pass
55 |
   |
note: This is an unsafe fix and may change runtime behavior
