Skip to content

Update to master 2026-08-10 - #7

Open
arsym-dev wants to merge 6 commits into
mainfrom
master-2026-08-10
Open

Update to master 2026-08-10#7
arsym-dev wants to merge 6 commits into
mainfrom
master-2026-08-10

Conversation

@arsym-dev

@arsym-dev arsym-dev commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Builds on #5

  • Added typing for remaining files. The first batch are manual, but the last batch was assisted with agents.
  • Updated from the old 8.5.3 branch to 8.6.0. Might still be missing a few types but should be minor
  • Added instructions to integrate with main repo (both as a stub repo and to inject types back into source files)
  • Improved scripts (particularly inject). Much easier to run now.

To address your concerns:

  1. I have not included py.typed but everything operates fine without it. Feel free to add it if you like. Removed scripts/init.py
  2. Fixed
  3. Kept as instructed
  4. Now uses pathlib over os.path
  5. Now uses uv rather than pip
  6. Preserving pyx docstrings will be addressed in a later PR

You can try it yourself by cloning this repo into the typings directory in renpy, checking out the master-2026-08-10 branch, and modify the pyproject.toml to have this:

[tool.pyright]
stubPath = "typings/renpy-stubs/src"

exclude = [
    "**/node_modules",
    "**/__pycache__",
    "**/.*",
    ".venv",
    "typings/",
    "module/build/",
]

Extract stubs from rpy files in renpy/common/
Append file contents if rpym and rpy share the same name
Add typing to rpy files
Typing args and kwargs
Some 8.6.0 types (needs updating)
Cherrypick new types from .py files
Create .gitattributes
Remove config.json, simplify
Extract/inject keywords
Import types from TYPE_CHECKING blocks
Script update
__internal_ -> __numbered_
Typing for remaining modules
Restore py.typed
Replace os.path with pathlib
pip -> uv
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.

1 participant