-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fixed code issue from compat with new numpydoc #26188
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
Conversation
scripts/validate_docstrings.py
Outdated
@@ -473,8 +473,7 @@ def parameter_desc(self, param): | |||
@property | |||
def see_also(self): | |||
return collections.OrderedDict((name, ''.join(desc)) | |||
for name, desc, _ | |||
in self.doc['See Also']) | |||
for name, desc in self.doc['See Also']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prob want to put a numpydoc>=0.9.0
in environment.yml
alt you might be able to
for name, desc, * in self.doc[....]
Codecov Report
@@ Coverage Diff @@
## master #26188 +/- ##
===========================================
- Coverage 91.98% 40.71% -51.28%
===========================================
Files 175 175
Lines 52371 52371
===========================================
- Hits 48175 21321 -26854
- Misses 4196 31050 +26854
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26188 +/- ##
==========================================
- Coverage 91.98% 91.98% -0.01%
==========================================
Files 175 175
Lines 52371 52371
==========================================
- Hits 48175 48172 -3
- Misses 4196 4199 +3
Continue to review full report at Codecov.
|
for name, desc, _ | ||
in self.doc['See Also']) | ||
result = collections.OrderedDict() | ||
for funcs, desc in self.doc['See Also']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could write this as a list comprehension but not a big deal
Hmm, this seemed to rely on some |
thanks @WillAyd |
TST: Check pytables<3.5.1 when skipping (pandas-dev#25773) * TST: Check pytables<3.5.1 when skipping 3.5.1 was made available on conda, causing 'xfail_non_writeable' tests to fail. * TST: Skip geopandas downstream test xref pandas-devgh-25778 added 'except NULL' for get_c_string_buf_and_size in util.pxd(bug without) fixed lint error Fixed code issue from compat with new numpydoc (pandas-dev#26188) fixed docstring
TST: Check pytables<3.5.1 when skipping (pandas-dev#25773) * TST: Check pytables<3.5.1 when skipping 3.5.1 was made available on conda, causing 'xfail_non_writeable' tests to fail. * TST: Skip geopandas downstream test xref pandas-devgh-25778 added 'except NULL' for get_c_string_buf_and_size in util.pxd(bug without) fixed lint error Fixed code issue from compat with new numpydoc (pandas-dev#26188) fixed docstring
TST: Check pytables<3.5.1 when skipping (pandas-dev#25773) * TST: Check pytables<3.5.1 when skipping 3.5.1 was made available on conda, causing 'xfail_non_writeable' tests to fail. * TST: Skip geopandas downstream test xref pandas-devgh-25778 added 'except NULL' for get_c_string_buf_and_size in util.pxd(bug without) fixed lint error Fixed code issue from compat with new numpydoc (pandas-dev#26188) fixed docstring
TST: Check pytables<3.5.1 when skipping (pandas-dev#25773) * TST: Check pytables<3.5.1 when skipping 3.5.1 was made available on conda, causing 'xfail_non_writeable' tests to fail. * TST: Skip geopandas downstream test xref pandas-devgh-25778 added 'except NULL' for get_c_string_buf_and_size in util.pxd(bug without) fixed lint error Fixed code issue from compat with new numpydoc (pandas-dev#26188) fixed docstring
git diff upstream/master -u -- "*.py" | flake8 --diff