holoviz/lumen

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

hoxbro opened this issue · 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.

lumen/lumen/views/base.py

Lines 267 to 269 in 9580995

def from_spec(
cls, spec: Dict[str, Any] | str, source=None, filters=None, pipeline=None
) -> 'View':

def from_spec(cls, spec: Dict[str, Any] | str) -> 'Auth':