Type hinting for loading a machine learning PMML model pipeline using `pickle.load()`

69 Views Asked by At

i have a function like:

def load_model(model_path: str) -> ???:
    with open("XXX.pkl", "rb") as f:
        model_pipeline = pickle.load(f)

    return model_pipeline

My question is what type hint i should specify for the output? thanks.

0

There are 0 best solutions below