-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Move the code in clashing() in abc.py to the module level #17548
Conversation
This makes linters such as pyflakes not complain about undefined names in the function. This way is preferable regardless because the doctests for the function, which have been moved to the module docstring, can actually be run. Previously, clashing was deleted at the end of the module, so it was impossible for the doctester to run it. See sympy#17544 (comment).
✅ Hi, I am the SymPy bot (v148). I'm here to help you write a release notes entry. Please read the guide on how to write release notes. Your release notes are in good order. Here is what the release notes will look like: This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.5. Note: This comment will be updated with the latest check if you edit the pull request. You need to reload the page to see it. Click here to see the pull request description that was parsed.
Update The release notes on the wiki have been updated. |
This seems to have broken doctests that import from abc somehow |
Ah, that sort of thing is probably why this code was in a function. |
Codecov Report
@@ Coverage Diff @@
## master #17548 +/- ##
=============================================
+ Coverage 74.711% 74.736% +0.025%
=============================================
Files 633 633
Lines 164617 164614 -3
Branches 38657 38657
=============================================
+ Hits 122987 123026 +39
+ Misses 36235 36192 -43
- Partials 5395 5396 +1 |
Looks good |
This makes linters such as pyflakes not complain about undefined names in the
function. This way is preferable regardless because the doctests for the
function, which have been moved to the module docstring, can actually be run.
Previously, clashing was deleted at the end of the module, so it was
impossible for the doctester to run it.
See #17544 (comment).
References to other Issues or PRs
Brief description of what is fixed or changed
Other comments
Release Notes
_clash
variables in the sympy.abc docstring