Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Restore lost typing

Andrey Rahmatullinc3b1700774bd
diff --git a/scrapy/http/request/__init__.py b/scrapy/http/request/__init__.py
index 305eef918..1ececaf1d 100644
--- a/scrapy/http/request/__init__.py
+++ b/scrapy/http/request/__init__.py
@@ -121,7 +121,7 @@ class Request(object_ref):
def encoding(self) -> str:
return self._encoding
- def __repr__(self):
+ def __repr__(self) -> str:
return f"<{self.method} {self.url}>"
def copy(self) -> "Request":