Skip to content

Commit 877df4e

Browse files
committed
Add comment & docstring
1 parent 3669756 commit 877df4e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

snooty/intersphinx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def __getitem__(self, target: str) -> TargetDefinition:
4949
return self.targets[target]
5050

5151
def dumps(self, name: str, version: str) -> bytes:
52+
"""Serialize this inventory in the Intersphinx inventory format, and
53+
return the resulting bytes."""
5254
# Newlines break the (fragile) format; let's just be safe and make sure we're not smuggling any in.
5355
if "\n" in name:
5456
raise ValueError(name)

snooty/test_intersphinx.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
EXPECTED_INVENTORY_FILENAME = "docsmongodbcommanualobjectsinv"
1111
INVENTORY_PATH = TESTING_CACHE_DIR.joinpath(EXPECTED_INVENTORY_FILENAME)
1212

13-
# Skip footnote labels during validation
13+
# Skip footnote labels during validation. Yes, these are all labels created
14+
# by footnotes.
1415
IGNORE_TARGETS = {
1516
"std:label:hashes",
1617
"std:label:update-correctness",

0 commit comments

Comments
 (0)