Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GetEdk2RelativePathFromAbsolutePath and GetAbsolutePathOnThisS…
…ystemFromEdk2RelativePath path input type hinting (#672) For GetEdk2RelativePathFromAbsolutePath change the type hinting of abspath from Tuple of strings to just str. For GetAbsolutePathOnThisSystemFromEdk2RelativePath change the type hinting of relpath from Tuple of strings to just str. This fixes the error messages from Pylint and Ruff about incompatible input types when using the functions as suggested. When attempting to pass a Tuple of strings to the functions, the functions would raise an error. ``` File "...\site-packages\edk2toollib\uefi\edk2\path_utilities.py", line 224, in GetAbsolutePathOnThisSystemFromEdk2RelativePath relpath = Path(*[part.replace("\\", "/") for part in relpath]) ^^^^^^^^^^^^ AttributeError: 'tuple' object has no attribute 'replace' ```
- Loading branch information