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

MAINT: minor refactoring in docscrape #297

Merged
merged 3 commits into from Aug 19, 2020
Merged

Conversation

rossbar
Copy link
Contributor

@rossbar rossbar commented Aug 19, 2020

A few removals from the docscrape module:

  • b9f94ff replaces a few if: return, else: return patterns and rewrites a method w/ list comprehension for improved readibility.
  • a4669d2 and b39d207 remove two functions from docscape, indent and header respectively. These functions are not used internally in numpydoc anywhere; however, they are not "private" (prefixed with _) so it is possible their removal could impact downstream projects. If this is a problem please LMK and I will revert.

@codecov-commenter
Copy link

Codecov Report

Merging #297 into master will increase coverage by 0.41%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##           master     #297      +/-   ##
==========================================
+ Coverage   93.11%   93.53%   +0.41%     
==========================================
  Files           7        7              
  Lines        1263     1252      -11     
==========================================
- Hits         1176     1171       -5     
+ Misses         87       81       -6     

@larsoner larsoner merged commit 121c327 into numpy:master Aug 19, 2020
@larsoner
Copy link
Collaborator

Thanks @rossbar

@jarrodmillman jarrodmillman added this to the 1.2.0 milestone Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants