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
DOC: remove not accepted arguments from pl.scatter #557
Conversation
That’s super redundant now. Please extract all that text from |
In #458 @fidelram suggested that this would be the way to go. If I put the text into another variable, this variable will only be used once. Does this still make sense? Anyways, I think this is just temporary until |
Deduplication always makes sense. I often use speaking variable names instead of comments to clarify what I’m doing. Here the 6 reasons why I’m convinced of the way I suggested: 1) If I look at your change as it is, I have no idea what parameters are missing compared to If one makes changes to the parameters, 3) they only have to make them once and 4) can’t forget to make them twice. 5) Also the diff becomes much smaller and 6) git will be able to track doc changes that are made in the mean time. So do it please. |
@flying-sheep what about this then? |
There’s still duplication. There shouldn’t be any duplicated parameter docs. I’d expect something like this: The diff will be 8 changed lines or so as opposed to dozens of added duplicate lines. _doc_scatter_common = '''
sort_order
...
'''
_doc_scatter_panels = '''
ncol
...
'''
_doc_scatter_meta = '''
title
...
'''
doc_scatter_temp = _doc_scatter_common + _doc_scatter_meta
doc_scatter_bulk = _doc_scatter_common + _doc_scatter_panel + _doc_scatter_meta |
OK, I think, now I got you point. |
@flying-sheep Thanks for your help. Like this, maybe? |
beautiful, thank you |
fixes #458