FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bug: docstring print statement bug by cadenmyers13 · Pull Request #380 · diffpy/diffpy.utils · GitHub

Repository navigation

bug: docstring print statement bug - #380

Merged
sbillinge merged 2 commits into
diffpy:mainfrom
cadenmyers13:ds-bug
Feb 4, 2026
Merged

sbillinge merged 2 commits into
diffpy:mainfrom
cadenmyers13:ds-bug

Conversation

Copy link
Copy Markdown
Contributor

this was printing a bad docstring because we didnt handle the None case. it printed like this,

This function has been deprecated and will be removed in version 4.0.0.
Please use None.new_func instead.

Now, if new_base=None, the print statement will look like

This function has been deprecated and will be removed in version 4.0.0.
Please use new_func instead.

optionally, we can make the user always specify a base.

cadenmyers13 commented Feb 4, 2026 •
edited
Loading

Copy link
Copy Markdown
Contributor Author

@sbillinge ready for review. The docstring print function didnt handle the None case nicely. Let me know what you think here

codecov Bot commented Feb 4, 2026 •
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (6ab0068) to head (fdca183).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #380   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          567       567           
=========================================
  Hits           567       567           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

cadenmyers13 mentioned this pull request Feb 4, 2026
18 tasks done
sbillinge merged commit 5239628 into diffpy:main Feb 4, 2026
7 checks passed
cadenmyers13 deleted the ds-bug branch February 5, 2026 14:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL