Is it possible to add typing support, or use pydan...
# ask-metaflow
a
Is it possible to add typing support, or use pydantic models for parameter definition? For example, the fact that the parameter is an int and not a string as desired does not get picked up by mypy.
Copy code
def building_block_echo(input: str) -> None:
    print(f"echo... {(input)}.")

class MyEchoPipeline(FlowSpec):
    test = Parameter(
        "test",
        help="A test parameter to show mypy typing works",
        default=1,
        type=int)

    @step
    def start(self):
        print(type(self.test))
        building_block_echo(self.test)

        self.next(self.end)

    @step
    def end(self):
        pass

if __name__ == "__main__":
    MyEchoPipeline()
a
Thanks for the reply, but if I understand correctly, that is for a config which is different from parameters. So that wont work.