From 6bb85a3bd1b44b37bfe270718339f94e5ddede7f Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Thu, 18 Jul 2024 13:30:03 +0500 Subject: [PATCH] Release notes for 0.23.0. --- CHANGELOG.rst | 6 ++++++ docs/dynamic-deps.rst | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) 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]