Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable false positive #520

Closed
jeff-hykin opened this issue Oct 25, 2020 · 2 comments
Closed

Variable false positive #520

jeff-hykin opened this issue Oct 25, 2020 · 2 comments
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@jeff-hykin
Copy link

jeff-hykin commented Oct 25, 2020

You can close this for not filling out the template (I'm personally not bothered by the issue) just thought maintainers might want to know

False positive shown in editor, code correctness/execution shown in REPL/terminal

flatten = lambda *n: (e for a in n for e in (flatten(*a) if isinstance(a, (tuple, list)) else (a,)))

Screen Shot 2020-10-25 at 6 09 34 PM

@erictraut
Copy link
Contributor

Thanks for the bug report. This will be fixed in the next release of pylance.

@erictraut erictraut added bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version and removed triage labels Oct 26, 2020
@jakebailey
Copy link
Member

This issue has been fixed in version 2020.10.3, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#2020103-28-october-2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

3 participants