Skip to content

[lupa] Bump to 2.8.* and add lupa.lua55 stubs - #16254

Merged
srittau merged 2 commits into
python:mainfrom
ekanshul:bump-lupa-2-8
Aug 20, 2026
Merged

[lupa] Bump to 2.8.* and add lupa.lua55 stubs#16254
srittau merged 2 commits into
python:mainfrom
ekanshul:bump-lupa-2-8

Conversation

@ekanshul

Copy link
Copy Markdown
Contributor

Closes #15627

Bump lupa to 2.8.* and add lupa/lua55.pyi (a copy of lua54.pyi, since the new module exposes exactly the same names and members at runtime), re-exporting it from __init__.pyi as the newest bundled Lua like the runtime does.

Agent used: Claude Code

lupa 2.7 started bundling Lua 5.5, so lupa 2.8 ships a new lupa.lua55
extension module and lupa's top-level namespace now re-exports it
(LuaRuntime is lupa.lua55.LuaRuntime). Without stubs for it, stubtest
fails with "lupa.lua55 failed to find stubs" on the stubsabot bump.

The lua55 module exposes exactly the same names and class members as
lua54 at runtime, so lua55.pyi is a copy of lua54.pyi, and __init__.pyi
now re-exports from lua55 (newest lib) as it did from lua54 before.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit 6cc14b4 into python:main Aug 20, 2026
74 checks passed
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.

2 participants