Skip to content

Commit 40191c6

Browse files
[#253]: Simplify SQLite cache loader API docstring
1 parent e84e969 commit 40191c6

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

lib/pyld/documentloader/requests_sqlite_cache.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,14 @@ def _resolve_sqlite_file_path(sqlite_file_path: Path | None) -> Path:
2626
class SqliteCacheRequestsDocumentLoader(DocumentLoader):
2727
"""Remote document loader with persistent SQLite HTTP caching.
2828
29-
Composes :class:`RequestsDocumentLoader` with a
30-
:class:`requests_cache.CachedSession` backed by SQLite. HTTP cache headers
31-
are always honored, supporting the JSON-LD Best Practice to locally cache
32-
remote context documents. For other ``CachedSession`` options, use
33-
``RequestsDocumentLoader(session=CachedSession(...))`` directly.
34-
3529
:param secure: require all requests to use HTTPS (default: False).
3630
:param sqlite_file_path: absolute path to the ``.sqlite`` cache file; when
3731
omitted, defaults to the platform user cache directory under ``pyld/``.
3832
"""
3933

4034
def __init__(
4135
self,
42-
secure=False,
36+
secure: bool = False,
4337
*,
4438
sqlite_file_path: Path | None = None,
4539
):

0 commit comments

Comments
 (0)