Skip to content

Comments

[pyupgrade] Make example error out-of-the-box (UP041)#19292

Merged
dylwil3 merged 1 commit intoastral-sh:mainfrom
MeGaGiGaGon:patch-5
Jul 11, 2025
Merged

[pyupgrade] Make example error out-of-the-box (UP041)#19292
dylwil3 merged 1 commit intoastral-sh:mainfrom
MeGaGiGaGon:patch-5

Conversation

@MeGaGiGaGon
Copy link
Contributor

Summary

Part of #18972

This PR makes timeout-error-alias (UP041)'s example error out-of-the-box.

Old example

raise asyncio.TimeoutError

New example

import asyncio

raise asyncio.TimeoutError

Test Plan

N/A, no functionality/tests affected

@dylwil3 dylwil3 added the documentation Improvements or additions to documentation label Jul 11, 2025
@dylwil3 dylwil3 merged commit 6d01c48 into astral-sh:main Jul 11, 2025
35 checks passed
@MeGaGiGaGon MeGaGiGaGon deleted the patch-5 branch July 11, 2025 21:10
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants