Skip to content

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

Restore lost typing

Andrey Rahmatullin1fdd0a70a0d5
diff --git a/scrapy/core/http2/stream.py b/scrapy/core/http2/stream.py
index 780191505..14bf4c5fe 100644
--- a/scrapy/core/http2/stream.py
+++ b/scrapy/core/http2/stream.py
@@ -151,7 +151,7 @@ class Stream:
self._deferred_response = Deferred(_cancel)
- def __repr__(self):
+ def __repr__(self) -> str:
return f'Stream(id={self.stream_id!r})'
@property