8000 fix PyCharm not finding Color types in .pyi files, fixes https://gith… · sDos280/raylib-python-cffi@84c7eff · GitHub
[go: up one dir, main page]

Skip to content

Commit 84c7eff

Browse files
fix PyCharm not finding Color types in .pyi files, fixes electronstudio#88
1 parent d427896 commit 84c7eff

File tree

4 files changed

+111
-0
lines changed

4 files changed

+111
-0
lines changed

dynamic/raylib/__init__.pyi

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,3 +3010,30 @@ rlShaderUniformDataType: int
30103010
rlTextureFilter: int
30113011
rlTraceLogLevel: int
30123012
rlVertexBuffer: struct
3013+
3014+
LIGHTGRAY =( 200, 200, 200, 255 )
3015+
GRAY =( 130, 130, 130, 255 )
3016+
DARKGRAY =( 80, 80, 80, 255 )
3017+
YELLOW =( 253, 249, 0, 255 )
3018+
GOLD =( 255, 203, 0, 255 )
3019+
ORANGE =( 255, 161, 0, 255 )
3020+
PINK =( 255, 109, 194, 255 )
3021+
RED =( 230, 41, 55, 255 )
3022+
MAROON =( 190, 33, 55, 255 )
3023+
GREEN =( 0, 228, 48, 255 )
3024+
LIME =( 0, 158, 47, 255 )
3025+
DARKGREEN =( 0, 117, 44, 255 )
3026+
SKYBLUE =( 102, 191, 255, 255 )
3027+
BLUE =( 0, 121, 241, 255 )
3028+
DARKBLUE =( 0, 82, 172, 255 )
3029+
PURPLE =( 200, 122, 255, 255 )
3030+
VIOLET =( 135, 60, 190, 255 )
3031+
DARKPURPLE =( 112, 31, 126, 255 )
3032+
BEIGE =( 211, 176, 131, 255 )
3033+
BROWN =( 127, 106, 79, 255 )
3034+
DARKBROWN =( 76, 63, 47, 255 )
3035+
WHITE =( 255, 255, 255, 255 )
3036+
BLACK =( 0, 0, 0, 255 )
3037+
BLANK =( 0, 0, 0, 0 )
3038+
MAGENTA =( 255, 0, 255, 255 )
3039+
RAYWHITE =( 245, 245, 245, 255 )

make_docs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ python3 create_enums.py > dynamic/raylib/enums.py
1313
pip3 install sphinx-autoapi myst_parser sphinx_rtd_theme
1414
python3 create_stub_pyray.py > pyray/__init__.pyi
1515
python3 create_enums.py >> pyray/__init__.pyi
16+
cat raylib/colors.py >> pyray/__init__.pyi
1617
python3 create_stub_static.py >raylib/__init__.pyi
18+
cat raylib/colors.py >> raylib/__init__.pyi
1719
rm -r docs
1820
cd docs-src
1921
make clean ; make html ; mv _build/html/ ../docs/

pyray/__init__.pyi

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4226,3 +4226,44 @@ class GuiIconName(IntEnum):
42264226
ICON_254 = 254
42274227
ICON_255 = 255
42284228

4229+
# Copyright (c) 2021 Richard Smith and others
4230+
#
4231+
# This program and the accompanying materials are made available under the
4232+
# terms of the Eclipse Public License 2.0 which is available at
4233+
# http://www.eclipse.org/legal/epl-2.0.
4234+
#
4235+
# This Source Code may also be made available under the following Secondary
4236+
# licenses when the conditions for such availability set forth in the Eclipse
4237+
# Public License, v. 2.0 are satisfied: GNU General Public License, version 2
4238+
# with the GNU Classpath Exception which is
4239+
# available at https://www.gnu.org/software/classpath/license.html.
4240+
#
4241+
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
4242+
4243+
LIGHTGRAY =( 200, 200, 200, 255 )
4244+
GRAY =( 130, 130, 130, 255 )
4245+
DARKGRAY =( 80, 80, 80, 255 )
4246+
YELLOW =( 253, 249, 0, 255 )
4247+
GOLD =( 255, 203, 0, 255 )
4248+
ORANGE =( 255, 161, 0, 255 )
4249+
PINK =( 255, 109, 194, 255 )
4250+
RED =( 230, 41, 55, 255 )
4251+
MAROON =( 190, 33, 55, 255 )
4252+
GREEN =( 0, 228, 48, 255 )
4253+
LIME =( 0, 158, 47, 255 )
4254+
DARKGREEN =( 0, 117, 44, 255 )
4255+
SKYBLUE =( 102, 191, 255, 255 )
4256+
BLUE =( 0, 121, 241, 255 )
4257+
DARKBLUE =( 0, 82, 172, 255 )
4258+
PURPLE =( 200, 122, 255, 255 )
4259+
VIOLET =( 135, 60, 190, 255 )
4260+
DARKPURPLE =( 112, 31, 126, 255 )
4261+
BEIGE =( 211, 176, 131, 255 )
4262+
BROWN =( 127, 106, 79, 255 )
4263+
DARKBROWN =( 76, 63, 47, 255 )
4264+
WHITE =( 255, 255, 255, 255 )
4265+
BLACK =( 0, 0, 0, 255 )
4266+
BLANK =( 0, 0, 0, 0 )
4267+
MAGENTA =( 255, 0, 255, 255 )
4268+
RAYWHITE =( 245, 245, 245, 255 )
4269+

raylib/__init__.pyi

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3964,3 +3964,44 @@ rlShaderUniformDataType: int
39643964
rlTextureFilter: int
39653965
rlTraceLogLevel: int
39663966
rlVertexBuffer: struct
3967+
# Copyright (c) 2021 Richard Smith and others
3968+
#
3969+
# This program and the accompanying materials are made available under the
3970+
# terms of the Eclipse Public License 2.0 which is available at
3971+
# http://www.eclipse.org/legal/epl-2.0.
3972+
#
3973+
# This Source Code may also be made available under the following Secondary
3974+
# licenses when the conditions for such availability set forth in the Eclipse
3975+
# Public License, v. 2.0 are satisfied: GNU General Public License, version 2
3976+
# with the GNU Classpath Exception which is
3977+
# available at https://www.gnu.org/software/classpath/license.html.
3978+
#
3979+
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
3980+
3981+
LIGHTGRAY =( 200, 200, 200, 255 )
3982+
GRAY =( 130, 130, 130, 255 )
3983+
DARKGRAY =( 80, 80, 80, 255 )
3984+
YELLOW =( 253, 249, 0, 255 )
3985+
GOLD =( 255, 203, 0, 255 )
3986+
ORANGE =( 255, 161, 0, 255 )
3987+
PINK =( 255, 109, 194, 255 )
3988+
RED =( 230, 41, 55, 255 )
3989+
MAROON =( 190, 33, 55, 255 )
3990+
GREEN =( 0, 228, 48, 255 )
3991+
LIME =( 0, 158, 47, 255 )
3992+
DARKGREEN =( 0, 117, 44, 255 )
3993+
SKYBLUE =( 102, 191, 255, 255 )
3994+
BLUE =( 0, 121, 241, 255 )
3995+
DARKBLUE =( 0, 82, 172, 255 )
3996+
PURPLE =( 200, 122, 255, 255 )
3997+
VIOLET =( 135, 60, 190, 255 )
3998+
DARKPURPLE =( 112, 31, 126, 255 )
3999+
BEIGE =( 211, 176, 131, 255 )
4000+
BROWN =( 127, 106, 79, 255 )
4001+
DARKBROWN =( 76, 63, 47, 255 )
4002+
WHITE =( 255, 255, 255, 255 )
4003+
BLACK =( 0, 0, 0, 255 )
4004+
BLANK =( 0, 0, 0, 0 )
4005+
MAGENTA =( 255, 0, 255, 255 )
4006+
RAYWHITE =( 245, 245, 245, 255 )
4007+

0 commit comments

Comments
 (0)
0