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

Fix CloudPath.__truediv__ to return NotImplemented #480

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

jayqi
Copy link
Member

@jayqi jayqi commented Oct 22, 2024

Return NotImplemented for CloudPath.__truediv__ in order to support operands that have implemented an __rtruediv__ that works with CloudPath.

Addresses an issue regarding compatibility with pandas-path surfaced in this issue:

Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request October 22, 2024 00:46 Inactive
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.4%. Comparing base (5f5e054) to head (279fa86).
Report is 1 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #480   +/-   ##
======================================
  Coverage    94.4%   94.4%           
======================================
  Files          23      23           
  Lines        1776    1776           
======================================
+ Hits         1677    1678    +1     
+ Misses         99      98    -1     
Files with missing lines Coverage Δ
cloudpathlib/cloudpath.py 95.1% <100.0%> (+0.1%) ⬆️

@jayqi jayqi requested a review from pjbull October 22, 2024 01:11
Copy link
Member

@pjbull pjbull 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, thanks!

@pjbull pjbull merged commit 7f1a5dc into master Oct 22, 2024
28 checks passed
@jayqi jayqi deleted the jyq-fix-truediv-fallback branch October 22, 2024 04:24
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.

2 participants