Skip to content

docs: fix msgParsator literal block in parsing#1399

Open
jaelliot wants to merge 1 commit intoWebOfTrust:mainfrom
jaelliot:chore/docstrings-parsing-only
Open

docs: fix msgParsator literal block in parsing#1399
jaelliot wants to merge 1 commit intoWebOfTrust:mainfrom
jaelliot:chore/docstrings-parsing-only

Conversation

@jaelliot
Copy link
Copy Markdown
Contributor

Summary

This PR fixes the Parser.msgParsator docstring in src/keri/core/parsing.py by marking the indented pseudo-code block as a proper literal block.

Scope

  • docstrings only
  • one file only: src/keri/core/parsing.py
  • no functional code changes
  • no unrelated formatting churn

Why

The Sphinx/docutils warning source for this lane was:

  • docstring of keri.core.parsing.Parser.msgParsator:44: ERROR: Unexpected indentation. [docutils]
  • docstring of keri.core.parsing.Parser.msgParsator:47: WARNING: Definition list ends without a blank line; unexpected unindent. [docutils]

The fix preserves the existing wording and only changes the docstring structure so the pseudo-code block parses correctly.

Validation

  • reran the keripy docs build and confirmed the parsing.py warning lines no longer appear
  • compare_test_baseline.py reported no new failures introduced by this change
  • structural doc-only check passed

Notes

This branch was pushed using the updated local guardrail path for structurally docstring-only Python changes, so unrelated Ruff and pytest blockers in the file or environment no longer block a docstring-only commit/push.

Copilot AI review requested due to automatic review settings April 14, 2026 23:25
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

One-file docstring-only salvage on branch from upstream/main.

Changes in src/keri/core/parsing.py:
- mark msgParsator Logic section as literal block (Logic:: + blank line)
- quote type-like text in Parser docs to avoid unresolved references
  (Verfifier, Versionage)

Validation:
- pre-edit parsing.py warning lines: 3
  - msgParsator: Unexpected indentation
  - msgParsator: Definition list ends without blank line
  - Parser: py:class reference target not found (Verfifier)
- post-edit parsing.py warning lines: 0
- compare_test_baseline.py: no new failures introduced
- check_doc_changes.py: exit 0
@jaelliot jaelliot force-pushed the chore/docstrings-parsing-only branch from 503f202 to 098cc96 Compare April 15, 2026 03:40
@jaelliot
Copy link
Copy Markdown
Contributor Author

Follow-up update pushed to the PR branch.

New head: 098cc962

What changed:

  • kept scope to src/keri/core/parsing.py only
  • preserved the msgParsator parser-facing literal-block fix
  • added minimal type-quoting for parser docstrings (Verfifier, Versionage) to eliminate remaining parsing.py warning lines in the current docs build

Validation rerun locally:

  • parsing.py warning lines: 3 -> 0
  • compare_test_baseline.py: no new failures introduced
  • check_doc_changes.py: exit 0

No functional code changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants