From 0b8dab1840ba4f14b41f18a88d0fd870dfeec7fe Mon Sep 17 00:00:00 2001 From: Numerlor <25886452+Numerlor@users.noreply.github.com> Date: Fri, 5 Mar 2021 01:19:16 +0100 Subject: Add comments for purpose of DocItem attributes --- bot/exts/info/doc/_cog.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py index 80f85d625..fd8ed2008 100644 --- a/bot/exts/info/doc/_cog.py +++ b/bot/exts/info/doc/_cog.py @@ -42,11 +42,11 @@ COMMAND_LOCK_SINGLETON = "inventory refresh" class DocItem(NamedTuple): """Holds inventory symbol information.""" - package: str - group: str - base_url: str - relative_url_path: str - symbol_id: str + package: str # Name of the package name the symbol is from + group: str # Interpshinx "role" of the symbol, for example `label` or `method` + base_url: str # Absolute path to to which the relative path resolves, same for all items with the same package + relative_url_path: str # Relative path to the page where the symbol is located + symbol_id: str # Fragment id used to locate the symbol on the page @property def url(self) -> str: -- cgit v1.2.3