Ruff pandas vet (#10281)
* Python linting: Add ruff rules for Pandas-vet and Pytest-style
* updating DIRECTORY.md
---------
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -57,7 +57,8 @@ def decimal_to_hexadecimal(decimal: float) -> str:
|
||||
>>> decimal_to_hexadecimal(-256) == hex(-256)
|
||||
True
|
||||
"""
|
||||
assert type(decimal) in (int, float) and decimal == int(decimal)
|
||||
assert isinstance(decimal, (int, float))
|
||||
assert decimal == int(decimal)
|
||||
decimal = int(decimal)
|
||||
hexadecimal = ""
|
||||
negative = False
|
||||
|
||||
Reference in New Issue
Block a user