Open OZOOOOOH opened 1 year ago
I got mypy error if i accept sourcery suggestion. because the return type is changed to list[Path]
In this case, I think sourcery suggestion should be like this
def get_files_by_suffix_in_dir(path: str, suffix: str) -> list[str]: return [str(path) for path in Path(path).glob(f"*{suffix}")]
IDE Version:
Thanks for raising this - have reproduced it
Checklist
Description
In this case, I think sourcery suggestion should be like this![image](https://github.com/sourcery-ai/sourcery/assets/61729168/738f8e7f-282d-413f-99d0-f3c99e96433d)
Code snippet that reproduces issue
Debug Information
IDE Version:
VSCODE 1.78.2 Sourcery Version: sourcery 1.3.0 Operating system and Version: Windows 10