Trying to use the layout function, I couldn’t help but notice that the 4th optional argument for the method is called in a few different ways.
In the actual function definition, the keyword is “grid”, however in the docstrintg, the keyword is gridRows. This discrepancy is picked up also by Pylance that complains if I use gridRows (but the argument is correctly picked up), and doesn’t complain if I use grid (but an exception is thrown).
def layout(self, ops, horizontal=None, vertical=None, grid=0) -> None:
"""
Layout all specified operators.
### Arguments:
* ops - Operators to layout. All if not specified
* horizontal - (Keyword, Optional) If True lays out horizontally.
* vertical - (Keyword, Optional) If True lays out vertically.
* gridRows - (Keyword, Optional) If set lays out in a grid with rows of that size.
Note: Only one of horizontal, vertical or gridRows can be specified.
### Example:
```
n.layout() # Layout all
n.layout(n.selectedChildren) # Layout selected
n.layout(horizontal=True) # Layout horizontally
n.layout(gridRows=10) # Layout in a grid of size 10
```
"""
I don’t know if I’m missing something, or if this really a discrepancy. If it is me, sorry for the noise.