[lupa] Bump to 2.8.* and add lupa.lua55 stubs - #16254
Merged
Merged
Conversation
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>
This comment has been minimized.
This comment has been minimized.
Contributor
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
srittau
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15627
Bump lupa to 2.8.* and add
lupa/lua55.pyi(a copy oflua54.pyi, since the new module exposes exactly the same names and members at runtime), re-exporting it from__init__.pyias the newest bundled Lua like the runtime does.Agent used: Claude Code