Skip to content

Add stubs for pyimgui - Dear ImGui bindings #14317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
f6f8a9a
Add stubs for pyimgui bindings (https://github.com/pyimgui/pyimgui) v…
m4reQ Jun 21, 2025
c7c2452
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 21, 2025
9dd6261
Add concrete types for user callback functions and `_ImGuiContext._ke…
m4reQ Jun 21, 2025
58e0229
Add missing docs for `_DrawList` methods
m4reQ Jun 21, 2025
f4dfd40
Add missing docs for `_DrawList` methods
m4reQ Jun 21, 2025
4f179c0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 21, 2025
28f4b15
Revert accidental change inside `scripts/create_baseline_stubs.py`
m4reQ Jun 21, 2025
a03be01
Remove unnecessarry import aliases
m4reQ Jun 21, 2025
d4ca86d
Merge branch 'imgui-2.0.0-stubs' of https://github.com/m4reQ/typeshed…
m4reQ Jun 21, 2025
841a345
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 21, 2025
586567f
Document `Any` usages
m4reQ Jun 21, 2025
b675a79
Add typehints for `__exit__` methods (borrowed from `typeshed/stdlib/…
m4reQ Jun 21, 2025
03e1f62
Add typehints for `_py_*` contextmanagers
m4reQ Jun 21, 2025
b491de6
Remove docstrings
m4reQ Jun 22, 2025
c24aa8f
Merge branch 'imgui-2.0.0-stubs' of https://github.com/m4reQ/typeshed…
m4reQ Jun 22, 2025
ea21eb4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 22, 2025
98fdd57
Use `Buffer` class from `typing_extensions` for backward compatibility
m4reQ Jun 22, 2025
218a9f4
Merge branch 'imgui-2.0.0-stubs' of https://github.com/m4reQ/typeshed…
m4reQ Jun 22, 2025
d66581c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 22, 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
3 changes: 3 additions & 0 deletions stubs/imgui/METADATA.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
version = "2.0.0"
upstream_repository = "https://github.com/pyimgui/pyimgui"
requires_python = ">=3.12"
11 changes: 11 additions & 0 deletions stubs/imgui/imgui/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from typing import Final

from imgui.core import *
from imgui.extra import *

VERTEX_BUFFER_POS_OFFSET: Final[int]
VERTEX_BUFFER_UV_OFFSET: Final[int]
VERTEX_BUFFER_COL_OFFSET: Final[int]

VERTEX_SIZE: Final[int]
INDEX_SIZE: Final[int]
Loading
Loading