Documentation and comments must be accurate, concise, and follow the project’s established conventions so they stay trustworthy and maintainable.
# make error available outside except block (py3)... versionadded::, .. versionchanged::) instead of rewriting prose that loses the version history.client.environ_base rather than hardcoding the same dict in the docstring.#: comment style rather than a “dangling” docstring placed after the assignment:class JSONTag(object):
#: The tag to mark the serialized object with. If ``None``, this tag is
#: considered mapping key.
key = None
Applying these practices prevents stale or misleading docs, keeps comments meaningful, and ensures documentation renders correctly and consistently across the codebase.</description> </invoke>