Skip to content

Fix await-outside-async to allow await at the top-level scope of a notebook#14225

Merged
charliermarsh merged 2 commits intoastral-sh:mainfrom
harupy:fix-await-outside-async
Nov 9, 2024
Merged

Fix await-outside-async to allow await at the top-level scope of a notebook#14225
charliermarsh merged 2 commits intoastral-sh:mainfrom
harupy:fix-await-outside-async

Conversation

@harupy
Copy link
Copy Markdown
Contributor

@harupy harupy commented Nov 9, 2024

Summary

Fix await-outside-async to allow await at the top-level scope of a notebook.

# foo.ipynb

await asyncio.sleep(1)  # should be allowed

Test Plan

A unit test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 9, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@charliermarsh charliermarsh merged commit 71da1d6 into astral-sh:main Nov 9, 2024
@charliermarsh charliermarsh added the bug Something isn't working label Nov 9, 2024
@charliermarsh
Copy link
Copy Markdown
Member

Thanks!

@harupy harupy deleted the fix-await-outside-async branch November 10, 2024 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants