-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[refurb
] Implement unnecessary-from-float
(FURB164
)
#10647
[refurb
] Implement unnecessary-from-float
(FURB164
)
#10647
Conversation
Maybe |
|
I have thought of that, but should we incorporate |
Also I'm not very sure why |
It sometimes has this error. Let me re-run it to see if it resolves the issue. |
/// Decimal(4.2) | ||
/// Decimal("inf") | ||
/// Fraction(4.2) | ||
/// Fraction(Decimal("4.2")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the inner "4.2"
be 4.2
?
refurb
] Implement verbose-decimal-fraction-construction
(FURB164
)refurb
] Implement unnecessary-from-float
(FURB164
)
c0db3d9
to
20223cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Head branch was pushed to by a user without write access
Sorry for the late response and thanks for the review! |
Summary
Implement FURB164 in the issue #1348.
Relevant Refurb docs is here: https://github.com/dosisod/refurb/blob/v2.0.0/docs/checks.md#furb164-no-from-float
I've changed the name from
no-from-float
toverbose-decimal-fraction-construction
.Test Plan
I've written it in the
FURB164.py
.