DOC: remove not accepted arguments from pl.scatter#557
DOC: remove not accepted arguments from pl.scatter#557flying-sheep merged 2 commits intoscverse:masterfrom fbnrst:fabianrost84-scatter-doc
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