Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix Pylance Python 2 mistake #16246

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

Merged
merged 1 commit into from
May 14, 2021
Merged

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented May 14, 2021

I made a mistake in #16210 by flipping the condition. My comment was right, but the code actually went and applied the rule to people who explicitly set the setting, versus those who did not.

I think I oopsed because in an early revision, I wasn't tracking "is default", but "is explicitly set". Maybe the latter would have made more sense.

@jakebailey
Copy link
Member Author

Not sure if I should be doing something with news here, given it's a fix to a fix so it actually works. This code already doesn't have tests, I don't think. 😬

@kimadeline kimadeline added the no-changelog No news entry required label May 14, 2021
@karthiknadig
Copy link
Member

No need to worry about the news. I will take care of it.

@karthiknadig karthiknadig added the skip tests Updates to tests unnecessary label May 14, 2021
@karthiknadig karthiknadig merged commit 6878880 into microsoft:main May 14, 2021
karthiknadig pushed a commit to karthiknadig/vscode-python that referenced this pull request May 14, 2021
karthiknadig pushed a commit that referenced this pull request May 14, 2021
karthiknadig added a commit that referenced this pull request May 18, 2021
* Cherry-picks into release from main (#16181)

* Update pygls dependency (#16165)

* Upgrade all packages (#16180)

* Update release version (#16196)

* Update change log version

* Allow Pylance to be used with Python 2 if explicitly chosen (#16210) (#16214)

* Update version and change log. (#16237)

* Fix Pylance Python 2 mistake (#16246)

* Update version and change log for second point release

Co-authored-by: Jake Bailey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required skip tests Updates to tests unnecessary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants