---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLW0602 Using global for `X` but no assignment is done
 --> global_variable_not_assigned.py:5:12
  |
3 | ###
4 | def f():
5 |     global X
  |            ^
  |

PLW0602 Using global for `X` but no assignment is done
  --> global_variable_not_assigned.py:9:12
   |
 8 | def f():
 9 |     global X
   |            ^
10 |
11 |     print(X)
   |
