@@ -276,20 +276,20 @@ def location(self, request: Request) -> Dict[str, str]:
276276 keys as described in :ref:`session-init`.
277277
278278 When overriding this method, you should only return a custom value if
279- the default implementation returns an empty :class:`dict`, to avoid
280- breaking the :ref:`precedence chain that users expect <session-init>`,
281- e.g.
279+ the default implementation returns an empty :class:`dict`, e.g.
282280
283281 .. code-block:: python
284282
285283 def location(self, request: Request) -> Dict[str, str]:
286284 fallback = {"addressCountry": "US", "addressRegion": "NY", "postalCode": "10001"}
287285 return super().location(request) or fallback
288286
289- .. note:: An implementation of :meth:`~scrapy_zyte_api.SessionConfig.location`
290- can technically override :reqmeta:`zyte_api_session_location` or
291- :setting:`ZYTE_API_SESSION_LOCATION`, but it is not recommended as it
292- breaks the precedence chain above that users may expect.
287+ .. note:: An implementation of
288+ :meth:`~scrapy_zyte_api.SessionConfig.location` can technically
289+ override :reqmeta:`zyte_api_session_location` or
290+ :setting:`ZYTE_API_SESSION_LOCATION`, but it is not recommended as
291+ it breaks the :ref:`precedence chain that users expect
292+ <session-init>`.
293293
294294 You should only override this method if you need a location to be
295295 used even when no location is specified through request metadata or
0 commit comments