fix(db): address code review feedback - fix comment stripping, type hints, test skip, and docs

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-17 09:21:11 +00:00
parent aa49fa3ae6
commit a007b4fd98
3 changed files with 30 additions and 25 deletions
+2 -2
View File
@@ -54,8 +54,8 @@ def _parse_down_revision(raw: str) -> list[str] | None:
Returns a list with one or more strings otherwise. Tuples are
returned for merge migrations (e.g. ``("017_a", "017_b")``).
"""
raw = raw.strip().rstrip("#").strip()
# Handle inline comments
# Strip inline comments (e.g. ``None # type: ignore``)
raw = raw.strip()
if "#" in raw:
raw = raw[: raw.index("#")].strip()
try: