To me, this suggests that the input variable must bear this "expected_type". It feels confusing to expected a type that is actually one that is assigned during the get_key_def() function, "Path" in this case.
@CharlesAuthier is this slight retroactive change ok to you?
inference_segmentation.py: restore str as expected type to better reflect documentation
Documentation for "expected_type" in get_key_def(): :param expected_type: (type) type of the expected variable.
To me, this suggests that the input variable must bear this "expected_type". It feels confusing to expected a type that is actually one that is assigned during the get_key_def() function, "Path" in this case. @CharlesAuthier is this slight retroactive change ok to you?