Skip to content

Commit

Permalink
Merge pull request #206 from scrapinghub/relnotes-0.23.0
Browse files Browse the repository at this point in the history
Release notes for 0.23.0.
  • Loading branch information
wRAR authored Jul 18, 2024
2 parents ba7ac2f + 6bb85a3 commit 80f71cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog
=========

0.23.0 (YYYY-MM-DD)
-------------------

* Added support for :ref:`specifying callback dependencies dynamically
<dynamic-deps>`.

0.22.6 (2024-07-03)
-------------------

Expand Down
2 changes: 0 additions & 2 deletions docs/dynamic-deps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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):
...
Expand All @@ -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]
Expand Down

0 comments on commit 80f71cc

Please sign in to comment.