mirror of https://github.com/scrapy/scrapy.git
fixed mypy typing error
This commit is contained in:
parent
42e8d5a615
commit
0a21a9457b
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue