paul@94 | 1 | #!/usr/bin/env python |
paul@94 | 2 | |
paul@94 | 3 | import imported |
paul@94 | 4 | |
paul@94 | 5 | imported.attr = 456 # detected with warning |
paul@94 | 6 | |
paul@94 | 7 | m = imported |
paul@94 | 8 | imported.a = 9 # detected with warning |
paul@94 | 9 | m.a = 8 # detected with warning (m is always imported) |
paul@94 | 10 | |
paul@94 | 11 | imported.x = 1 # detected with warning (despite no collision) |
paul@94 | 12 | |
paul@94 | 13 | n = None |
paul@94 | 14 | n = imported |
paul@94 | 15 | n.y = 2 # not detected due to reassignment of n |
paul@94 | 16 | n.y = 3 # not detected due to reassignment of n |
paul@94 | 17 | |
paul@94 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |