nvie / vim-flake8

Flake8 plugin for Vim
BSD 2-Clause "Simplified" License
1.06k stars 99 forks source link

flake8 crashes when any undefined token ends in dot (.), an incomplete attribute #96

Open PorcelainMouse opened 2 years ago

PorcelainMouse commented 2 years ago

MWE

if __name__ == "__main__":
    foo.

I know this doesn't seem like it would occur very often, but it seems to happen to me lot. It's something about trying to get completion to work, and when that fails, I usually have to stop and do some thinking or research, and while I'm doing that, my DE checks what I wrote and, bingo, I get this error.