Skip to content

Comments

[refurb] Make example error out-of-the-box (FURB157)#19695

Merged
dylwil3 merged 1 commit intoastral-sh:mainfrom
MeGaGiGaGon:patch-1
Aug 1, 2025
Merged

[refurb] Make example error out-of-the-box (FURB157)#19695
dylwil3 merged 1 commit intoastral-sh:mainfrom
MeGaGiGaGon:patch-1

Conversation

@MeGaGiGaGon
Copy link
Contributor

Summary

Part of #18972

This PR makes verbose-decimal-constructor (FURB157)'s example error out-of-the-box.

Old example

Decimal("0")
Decimal(float("Infinity"))

New example

from decimal import Decimal

Decimal("0")
Decimal(float("Infinity"))

Imports were also added to the "Use Instead" section.

Test Plan

N/A, no functionality/tests affected

@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dylwil3 dylwil3 added the documentation Improvements or additions to documentation label Aug 1, 2025
@dylwil3 dylwil3 merged commit 580577e into astral-sh:main Aug 1, 2025
36 checks passed
@MeGaGiGaGon MeGaGiGaGon deleted the patch-1 branch August 1, 2025 18:10
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