Skip to content

Conversation

@kaihsin
Copy link
Collaborator

@kaihsin kaihsin commented Nov 25, 2025

This PR address #525

@kaihsin kaihsin requested a review from Roger-luo November 25, 2025 10:18
@github-actions
Copy link
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
11772 10508 89% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/kirin/dialects/lowering/func.py 95% 🟢
src/kirin/dialects/py/assign.py 87% 🟢
TOTAL 91% 🟢

updated for commit: 3e84ef6 by action🐍

@github-actions
Copy link
Contributor

PR Preview Action v1.6.3

🚀 View preview at
https://QuEraComputing.github.io/kirin/pr-preview/pr-588/

Built to branch gh-pages at 2025-11-25 10:18 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

❌ Patch coverage is 95.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/kirin/dialects/lowering/func.py 95.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

func_frame.exhaust()

last_stmt = func_frame.curr_region.blocks[0].last_stmt
rtrn_stmt = func.Return(last_stmt.result)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add comment if you are certain the last_stmt.result won't be None? and make pyright happy about it using ignore? Or we should add a check here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

for listcomp it should always have a return so it shouldn't be None. let me take a look to see what I can do

@@ -0,0 +1,64 @@
from kirin import ir
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we remove the comp this is not about lambda in list comprehension?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure

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.

3 participants