Skip to content
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

🧹 Update type comparison in ragged.py #497

Merged
merged 3 commits into from
Jul 21, 2024

Conversation

selipot
Copy link
Member

@selipot selipot commented Jul 21, 2024

The code changes in ragged.py update the type comparison for the tolerance variable. Instead of using the type() function, it now uses the isinstance() function to check if tolerance is an instance of pd.Timedelta. This change improves the accuracy and reliability of the comparison.

Note: This commit message follows the established convention of using the "chore" type for non-functional changes that don't affect the code's behavior.

The code changes in ragged.py update the type comparison for the `tolerance` variable. Instead of using the `type()` function, it now uses the `isinstance()` function to check if `tolerance` is an instance of `pd.Timedelta`. This change improves the accuracy and reliability of the comparison.

Note: This commit message follows the established convention of using the "chore" type for non-functional changes that don't affect the code's behavior.
@kevinsantana11 kevinsantana11 changed the title chore: Update type comparison in ragged.py 🐛 Update type comparison in ragged.py Jul 21, 2024
@kevinsantana11 kevinsantana11 changed the title 🐛 Update type comparison in ragged.py 🧹 Update type comparison in ragged.py Jul 21, 2024
@philippemiron
Copy link
Contributor

Fyi Refactoring is at two spots.

@kevinsantana11
Copy link
Contributor

@philippemiron thanks for the heads up

Copy link
Contributor

@kevinsantana11 kevinsantana11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, merging

@kevinsantana11 kevinsantana11 merged commit 6aedae2 into Cloud-Drift:main Jul 21, 2024
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants