fixed mypy typing error

This commit is contained in:
Alex 2023-01-26 00:50:29 -08:00
parent 42e8d5a615
commit 0a21a9457b
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ from scrapy.utils.request import referer_str
logger = logging.getLogger(__name__)
def _to_string(path: Union[str, PathLike]):
def _to_string(path: Union[str, PathLike]) -> str:
return str(path) # convert a Path object to string