lumen icon indicating copy to clipboard operation
lumen copied to clipboard

Make "non-standard" keywords in methods keyword-only arguments

Open hoxbro opened this issue 1 year ago • 0 comments

Some methods in Lumen need different inputs depending on the class it is called from. An example of this could be from_spec, the example below. I would like to see these non-standard keywords being keyword-only arguments, so passing in the wrong arguments is impossible.

https://github.com/holoviz/lumen/blob/95809959b18eb31d069c084f4fabdefbc2cfb05e/lumen/views/base.py#L267-L269

https://github.com/holoviz/lumen/blob/95809959b18eb31d069c084f4fabdefbc2cfb05e/lumen/dashboard.py#L299

hoxbro avatar Dec 19 '22 15:12 hoxbro