Skip to content

[codex] Ratchet lsp.query return typing#573

Merged
jsiek merged 1 commit into
mainfrom
codex/issue-506-query-warn-return-any
May 15, 2026
Merged

[codex] Ratchet lsp.query return typing#573
jsiek merged 1 commit into
mainfrom
codex/issue-506-query-warn-return-any

Conversation

@jsiek
Copy link
Copy Markdown
Owner

@jsiek jsiek commented May 15, 2026

Summary

  • ratchet lsp.query to enforce warn_return_any in mypy
  • tighten two Meta helper functions so their annotated returns are concrete bool and int

Validation

  • python3 -m mypy --warn-return-any lsp/query.py --follow-imports=silent
  • python3 -m mypy lsp/query.py --follow-imports=silent
  • python3 -m ruff check lsp/query.py pyproject.toml
  • git diff --check
  • make tests

Notes

This is a focused #506 slice. The umbrella issue should remain open for the remaining lsp/query.py strict bits and the larger parser/proof-checker ratchets.

@jsiek jsiek marked this pull request as ready for review May 15, 2026 21:03
@jsiek jsiek merged commit d6fd3c6 into main May 15, 2026
7 checks passed
@jsiek jsiek deleted the codex/issue-506-query-warn-return-any branch May 15, 2026 21:04
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.

1 participant