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

"Expression value is unused" should not be reported for last expression in notebook cell #4164

Merged
merged 8 commits into from
Nov 11, 2022

Conversation

debonte
Copy link
Collaborator

@debonte debonte commented Nov 8, 2022

Address microsoft/pylance-release#3282

Don't report an error for an unused expression at the end of a notebook cell, as it is treated as the cell's value.

The tests are checking the diagnostic count which we would normally do by testing a sample .py file, but I don't believe we have a way to enable ipythonMode with that approach. If you'd prefer the tests to work that way, I can look into making that work.

@debonte debonte merged commit 1bdd68b into microsoft:main Nov 11, 2022
@debonte debonte deleted the pylance3282 branch November 11, 2022 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants