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

Not equal operator <> syntax (Python 2) #768

Closed
ypapouin opened this issue Jun 26, 2020 · 3 comments
Closed

Not equal operator <> syntax (Python 2) #768

ypapouin opened this issue Jun 26, 2020 · 3 comments
Labels
addressed in next version Issue is fixed and will appear in next published version enhancement request New feature or request

Comments

@ypapouin
Copy link

Describe the bug
When the "<>" operator is detected by Pyright, "Expected expression"is displayed.
All next code is unreachable.

To Reproduce
Open a python 2 file that include the <> operator in a function.

Expected behavior
<> was a valid not equal operator on python2, it should be supported.

Screenshots or Code
image

VS Code extension or command-line
1.1.26

@erictraut
Copy link
Collaborator

Sorry, Pyright doesn't support Python 2, and we have no plans to add such support.

@erictraut erictraut added the as designed Not a bug, working as intended label Jun 26, 2020
@erictraut erictraut reopened this Jun 26, 2020
@erictraut
Copy link
Collaborator

Actually, it would be easy to have the parser do a better job if it sees the "<>" token. It will need to report an error since this is illegal in Python 3, but it would at least avoid the cascade of errors that follows.

@erictraut erictraut added enhancement request New feature or request addressed in next version Issue is fixed and will appear in next published version and removed as designed Not a bug, working as intended labels Jun 26, 2020
@erictraut
Copy link
Collaborator

This is now addressed in version 1.1.47, which I just published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed in next version Issue is fixed and will appear in next published version enhancement request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants