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

[Python3] Tuple unpacking in the context of a with statement confuses the highligher #1467

Closed
fake-name opened this issue Mar 18, 2018 · 3 comments

Comments

@fake-name
Copy link

image

	with self.row_sess_context(dbid=relid) as (row, sess):
		print(row, sess)

This is completely valid python, but the trailing parenthesis is highlighted in red.

@keith-hall
Copy link
Collaborator

This seems to be a duplicate of #1397, and was fixed by #1418

@FichteFoll
Copy link
Collaborator

Whops, I should update my local repo 👍

@fake-name
Copy link
Author

fake-name commented Mar 20, 2018

@keith-hall - Yeah, looks like it. I must have missed that issue because I was searching for parenthesis (and therefore tuples), not brackets.

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

No branches or pull requests

3 participants