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

with ExitStack : Unreachable code #842

Closed
mlamarre opened this issue Jan 16, 2021 · 2 comments
Closed

with ExitStack : Unreachable code #842

mlamarre opened this issue Jan 16, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@mlamarre
Copy link

from contextlib import ExitStack
with ExitStack() as exit_stack:
    print('Hey')
print('You')

Get:
Code below with ExitStack() as exit_stack is grey, unreachable.

Expected:
Reachable

This is regression, it was working this morning.

  • Language Server version: 2021.1.1
  • OS and version: win32 x64
  • Python version (and distribution if applicable, e.g. Anaconda): miniconda python 3.7
  • python.analysis.indexing: undefined
  • python.analysis.typeCheckingMode: off
@erictraut
Copy link
Contributor

Thanks for reporting.

This is a duplicate of #717. It will be fixed in the next release.

@erictraut erictraut added duplicate This issue or pull request already exists and removed triage labels Jan 16, 2021
@jakebailey
Copy link
Member

Closing as a dupe of #494.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants