I don't know in what version of Python this started, but importlib.util.spec_from_file_location accepts a pathlib.Path as the second argument, not just a str as mypy 0.701 seems to believe. Probably a quick fix for someone who knows the codebase better.