Skip to content

Fix and test for "async with does not allow new lines".#13436

Merged
Carreau merged 2 commits into
ipython:masterfrom
Carreau:fix-async-with
Jan 17, 2022
Merged

Fix and test for "async with does not allow new lines".#13436
Carreau merged 2 commits into
ipython:masterfrom
Carreau:fix-async-with

Conversation

@Carreau
Copy link
Copy Markdown
Member

@Carreau Carreau commented Jan 10, 2022

Use the opportunity to add a test, and parametrise a few other, plus set
the correct stacklevel.

Closes #12975

@Carreau Carreau linked an issue Jan 10, 2022 that may be closed by this pull request
Use the opportunity to add a test, and parametrise a few other, plus set
the correct stacklevel.

Closes ipython#12975
@Carreau Carreau added this to the 7.32 milestone Jan 11, 2022
Copy link
Copy Markdown
Contributor

@naterush naterush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Carreau I'm new here, so not sure what the etiquette is on reviews. You mentioned elsewhere you're the main PR reviewer, so thought I'd try to help out on your PRs. If it's not helpful (or there's a more helpful way to be involved), please let me know.

I've verified these changes move the reporting of the warning to the call site of make_tokens_by_line, which seems to be the primary goal of this PR. LGTM ::))

@Carreau
Copy link
Copy Markdown
Member Author

Carreau commented Jan 17, 2022

Thanks, that is helpful review.

Even a LGTM, and making sure I don't forget a print statement or anything else is welcome.

@Carreau Carreau merged commit 6edc05a into ipython:master Jan 17, 2022
@lumberbot-app lumberbot-app Bot added the Still Needs Manual Backport Added My MrMeeseeks when a backport fails. Help by backporting it, solving conflicts, send PR. label Jan 17, 2022
@Carreau Carreau removed the Still Needs Manual Backport Added My MrMeeseeks when a backport fails. Help by backporting it, solving conflicts, send PR. label Feb 25, 2022
@Carreau Carreau modified the milestones: 7.32, 8.1 Feb 25, 2022
@ipython ipython deleted a comment from lumberbot-app Bot Feb 25, 2022
@Carreau Carreau deleted the fix-async-with branch August 30, 2022 14:51
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.

Multi-line edit executes too early with await async with doesn't allow newlines

2 participants