🌐 AI搜索 & 代理 主页
Skip to content
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
970cd4f
[mypyc] feat: add IndexOp support to `constant_fold_expr`
BobTheBuidler Oct 2, 2025
51fdd2d
Update constant_fold.py
BobTheBuidler Oct 2, 2025
4ad507a
Update constant_fold.py
BobTheBuidler Oct 2, 2025
bed37d6
Update constant_fold.py
BobTheBuidler Oct 2, 2025
d7f75f4
Update constant_fold.py
BobTheBuidler Oct 2, 2025
558dee1
Update constant_fold.py
BobTheBuidler Oct 2, 2025
3f18ed0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 2, 2025
692844c
Update constant_fold.py
BobTheBuidler Oct 2, 2025
869616c
Update constant_fold.py
BobTheBuidler Oct 2, 2025
22651fe
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 2, 2025
9bd78f3
Update constant_fold.py
BobTheBuidler Oct 2, 2025
60574fc
Update constant_fold.py
BobTheBuidler Oct 2, 2025
daeaa50
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 2, 2025
785c221
Update constant_fold.py
BobTheBuidler Oct 2, 2025
817ab5b
Merge branch 'master' into patch-12
BobTheBuidler Oct 2, 2025
042f726
Update irbuild-constant-fold.test
BobTheBuidler Oct 2, 2025
fe2f670
Update irbuild-constant-fold.test
BobTheBuidler Oct 2, 2025
377b31e
refactor
BobTheBuidler Oct 2, 2025
adae39f
Update expression.py
BobTheBuidler Oct 2, 2025
35b0dfc
Update constant_fold.py
BobTheBuidler Oct 2, 2025
6a25595
Update constant_fold.py
BobTheBuidler Oct 2, 2025
8add115
Update constant_fold.py
BobTheBuidler Oct 2, 2025
286a108
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 2, 2025
0a14359
Update constant_fold.py
BobTheBuidler Oct 2, 2025
2d768df
Update constant_fold.py
BobTheBuidler Oct 2, 2025
4bcd5d6
Update constant_fold.py
BobTheBuidler Oct 2, 2025
a62ef3a
Update constant_fold.py
BobTheBuidler Oct 2, 2025
3ff12ec
Update constant_fold.py
BobTheBuidler Oct 2, 2025
45bcc66
Update irbuild-constant-fold.test
BobTheBuidler Oct 2, 2025
e2fa664
Update run-strings.test
BobTheBuidler Oct 2, 2025
27193d8
Update irbuild-constant-fold.test
BobTheBuidler Oct 2, 2025
4dc3a78
Merge branch 'master' into patch-12
BobTheBuidler Oct 4, 2025
9481314
Merge branch 'master' into patch-12
BobTheBuidler Oct 6, 2025
9c9743c
Merge branch 'master' into patch-12
BobTheBuidler Oct 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update constant_fold.py
  • Loading branch information
BobTheBuidler authored Oct 2, 2025
commit d7f75f418533055bba978507b9ab3c1e552f85cd
2 changes: 1 addition & 1 deletion mypyc/irbuild/constant_fold.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
index = constant_fold_expr(builder, expr.base)
if index is not None:
try:
return base[index]
return base[index] # type: ignore [index]
except Exception:
return None
return None
Expand Down