Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Match linter conditional walk to analysis #1999

Open
wants to merge 36 commits into
base: master
Choose a base branch
from

Conversation

MikhailArkhipov
Copy link

Fixes #1908

Not ideal solution since goto definition still takes to else (latest) but at least walk matches analysis walk and hence there is no false positive.

MikhailArkhipov added 30 commits September 30, 2019 12:03
@jakebailey
Copy link
Member

Is this backwards? Shouldn't we be preventing the analysis from skipping over specific paths if we intend that to only work in stubs?

@MikhailArkhipov
Copy link
Author

That is a very good question... So far I just made linter walk same way as analysis so variables are handled identically. Should we limit this to stubs only? I don't know...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VSCode Python Extention giving undefined variable warnings for defined variables in 2020.2.63072
2 participants