-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
m4reQ
wants to merge
19
commits into
python:main
Choose a base branch
from
m4reQ:imgui-2.0.0-stubs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 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 c7c2452
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9dd6261
Add concrete types for user callback functions and `_ImGuiContext._ke…
m4reQ 58e0229
Add missing docs for `_DrawList` methods
m4reQ f4dfd40
Add missing docs for `_DrawList` methods
m4reQ 4f179c0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 28f4b15
Revert accidental change inside `scripts/create_baseline_stubs.py`
m4reQ a03be01
Remove unnecessarry import aliases
m4reQ d4ca86d
Merge branch 'imgui-2.0.0-stubs' of https://github.com/m4reQ/typeshed…
m4reQ 841a345
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 586567f
Document `Any` usages
m4reQ b675a79
Add typehints for `__exit__` methods (borrowed from `typeshed/stdlib/…
m4reQ 03e1f62
Add typehints for `_py_*` contextmanagers
m4reQ b491de6
Remove docstrings
m4reQ c24aa8f
Merge branch 'imgui-2.0.0-stubs' of https://github.com/m4reQ/typeshed…
m4reQ ea21eb4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 98fdd57
Use `Buffer` class from `typing_extensions` for backward compatibility
m4reQ 218a9f4
Merge branch 'imgui-2.0.0-stubs' of https://github.com/m4reQ/typeshed…
m4reQ d66581c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/usr/bin/env python3 | ||
|
||
"""Script to generate unannotated baseline stubs using stubgen. | ||
|
||
Basic usage: | ||
|
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
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" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import typing as _t | ||
|
||
from imgui.core import * | ||
from imgui.extra import * | ||
|
||
VERTEX_BUFFER_POS_OFFSET = _t.cast(int, ...) | ||
VERTEX_BUFFER_UV_OFFSET = _t.cast(int, ...) | ||
VERTEX_BUFFER_COL_OFFSET = _t.cast(int, ...) | ||
|
||
VERTEX_SIZE = _t.cast(int, ...) | ||
INDEX_SIZE = _t.cast(int, ...) | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.