Skip to content

Commit

Permalink
Document the use of repr() for annotation fingerprinting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Dec 26, 2023
1 parent bf93c2b commit 596431b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/providers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ To have other settings respected, in addition to ``CONCURRENT_REQUESTS``, you'd
need to use ``crawler.engine.download`` or something like that. Alternatively,
you could implement those limits in the library itself.


.. _annotated:

Attaching metadata to dependencies
==================================

Expand Down
5 changes: 5 additions & 0 deletions docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,8 @@ custom request fingerprinter class to use for requests.
This class is used to generate a base fingerprint for a request. If that
request uses dependency injection, that fingerprint is then modified to account
for requested dependencies. Otherwise, the fingerprint is used as is.

.. note:: Annotations of :ref:`annotated dependencies <annotated>` are
serialized with :func:`repr` for fingerprinting purposes. If you find a
real-world scenario where this is a problem, please `open an issue
<https://github.com/scrapinghub/scrapy-poet/issues>`_.

0 comments on commit 596431b

Please sign in to comment.