Here:
https://github.com/polis-community/red-dwarf/blob/main/reddwarf/implementations/polis.py#L14
This function is not properly statically typed.
Currently
from reddwarf.implementations.polis import run_pipeline
dummy_var = ...
run_pipeline(dummary_var) # the compiler will not say anything
But
from reddwarf.implementations.base import run_pipeline
dummy_var = ...
run_pipeline(dummary_var) # the compiler will throw an error as expected
Solution:
- create a subtype for this **kwargs in the polis-specific implementation, (excluding
reducer and clusterer params from the object)