Use :param x: for docstring comments, refs #413

This commit is contained in:
Simon Willison 2022-03-11 09:38:34 -08:00
commit 26e6d2622c
3 changed files with 327 additions and 129 deletions

View file

@ -365,6 +365,9 @@ def hash_record(record: Dict, keys: Optional[Iterable[str]] = None):
{"name": "Cleo", "twitter": "CleoPaws", "age": 7},
keys=("name", "twitter")
)
:param record: Record to generate a hash for
:param keys: Subset of keys to use for that hash
"""
to_hash = record
if keys is not None: