diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d5805e13..7c268d89 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,12 @@ Changelog ========= +0.23.0 (YYYY-MM-DD) +------------------- + +* Added support for :ref:`specifying callback dependencies dynamically + `. + 0.22.6 (2024-07-03) ------------------- diff --git a/docs/dynamic-deps.rst b/docs/dynamic-deps.rst index 529cf9f1..dca1dba6 100644 --- a/docs/dynamic-deps.rst +++ b/docs/dynamic-deps.rst @@ -18,7 +18,6 @@ hints for its arguments: def start_requests(self): yield scrapy.Request("http://books.toscrape.com/", self.parse_book) - def parse_book(self, response, book_page: BookPage, other_dep: OtherDep): ... @@ -44,7 +43,6 @@ request meta dictionary using the "inject" key: meta={"inject": [OtherDep]}, ) - def parse_book(self, response, book_page: BookPage, dynamic: DynamicDeps): # access the dynamic dependency values by their type: other_dep = dynamic[OtherDep]