Skip to content

Commit 5be3a46

Browse files
authored
Added wrong-import-position message example (#6240)
1 parent 2d363e4 commit 5be3a46

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import os
2+
3+
home = os.environ['HOME']
4+
5+
import sys # [wrong-import-position]
6+
7+
print(f'Home directory is {home}', file=sys.stderr)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import os
2+
import sys
3+
4+
home = os.environ['HOME']
5+
print(f'Home directory is {home}', file=sys.stderr)

0 commit comments

Comments
 (0)