from_file_and_project_dir_paths#

static ProjectRelativePath.from_file_and_project_dir_paths(file_path: str | Path, project_dir: str | Path) ProjectRelativePath#

Create an ProjectRelativePath instance.

Parameters:
file_pathUnion[str, Path]

Path to the referenced file.

project_dirUnion[str, Path]

Path to the project directory.

Returns:
ProjectRelativePath

Instance of the project relative path