---
source: crates/ruff_linter/src/rules/pyflakes/mod.rs
---
F811 [*] Redefinition of unused `fu` from line 2
 --> F811_17.py:6:12
  |
5 | def bar():
6 |     import fu
  |            ^^ `fu` redefined here
7 |
8 |     def baz():
  |
 ::: F811_17.py:2:8
  |
1 | """Test that shadowing a global name with a nested function generates a warning."""
2 | import fu
  |        -- previous definition of `fu` here
  |
help: Remove definition: `fu`
  |
5 | def bar():
  -     import fu
6 |
  |

F811 Redefinition of unused `fu` from line 6
  --> F811_17.py:6:12
   |
 5 | def bar():
 6 |     import fu
   |            -- previous definition of `fu` here
 7 |
 8 |     def baz():
 9 |         def fu():
   |             ^^ `fu` redefined here
10 |             pass
   |
help: Remove definition: `fu`
