src.utils.assert_is_file

src.utils.assert_is_file(filepath: str) str

Raise an error if filepath is not a valid path to a real file.

Parameters:

filepath – The path to check.

Raises:

AssertionError – If filepath is not a valid path to a real file.

Returns:

The filepath if it is a valid path to a real file.