Skip to content

Conversation

@AngryLoki
Copy link

Problem solved by the commit

Right now all usage of pyxrt either not validated or causes type errors (when checking with any modern type-checking tool like pyright/pylance). There is no autocomplete either.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

N/A

How problem was solved, alternative solutions (if any) and why they were rejected

This pull-request adds pyxrt.pyi type stub file with complete type annotations for the pyxrt module and installs it alongside the compiled extension module. The file covers the whole module verbatim, not trying to remove any duplicate definitions.

Risks (if any) associated the changes in the commit

pyxrt.pyi may desync with C++ code in the future, but it should not break anything other than type checking. This file is needed for IDE autocompletion and type checking and does not affect execution (at all).

What has been tested and how, request additional testing if necessary

Checked against current usage in mlir-aie iron with Python >= 3.11.

Documentation impact (if any)

N/A

Add pyxrt.pyi type stub file with complete type annotations for the pyxrt module and install it alongside the compiled extension module.

This file is needed for IDE autocompletion and type checking and does not affect execution.
@xrt-pr-bot
Copy link

xrt-pr-bot bot commented Dec 13, 2025

⚠️ Authorization Failed

@AngryLoki is not a repository collaborator.

To proceed:

  • XRT Admins: Add the build label to authorize this PR build
  • OR Add @AngryLoki as a repository collaborator

@stsoe stsoe added the build label Dec 29, 2025
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

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