Use code-block directive for shell example

This commit is contained in:
Olivia Choi 2026-05-27 18:41:19 -07:00 committed by GitHub
parent 910819ad60
commit 2f3bce7c28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -148,7 +148,9 @@ override its ``update_vars`` method. See :ref:`topics-commands` for more
information about creating custom Scrapy commands.
For example, if your project defines a custom ``shell`` command, you can update
the shell namespace like this::
the shell namespace like this:
.. code-block:: python
from scrapy.commands.shell import Command as ShellCommand