Skip to content

Refactor: add exit_code field to RunResult#468

Merged
edvilme merged 1 commit intomainfrom
phase4/runresult-exit-code
Apr 9, 2026
Merged

Refactor: add exit_code field to RunResult#468
edvilme merged 1 commit intomainfrom
phase4/runresult-exit-code

Conversation

@edvilme
Copy link
Copy Markdown
Contributor

@edvilme edvilme commented Apr 7, 2026

Summary

Add an \�xit_code\ field to the \RunResult\ class in \�undled/tool/lsp_utils.py, matching mypy's implementation pattern.

Changes

  • Added \�xit_code: Optional[Union[int, str]] = None\ parameter to \RunResult.init\
  • Added \Optional\ to the \ yping\ imports
  • Default is \None, so all existing callers continue to work unchanged

References

Add Optional[Union[int, str]] exit_code parameter with None default to RunResult,
matching mypy's implementation. This is backward-compatible — no existing
callers need changes.

Part of #465
Ref: microsoft/vscode-python-tools-extension-template#290

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@edvilme edvilme added the debt label Apr 7, 2026
@edvilme edvilme requested a review from rchiodo April 7, 2026 21:57
Copy link
Copy Markdown
Contributor

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

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

Approved via Review Center.

@edvilme edvilme merged commit 2a742f1 into main Apr 9, 2026
22 checks passed
@edvilme edvilme deleted the phase4/runresult-exit-code branch April 9, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants