generate type stubs which are sufficiently self-consistent to run mypy on all the examples

This commit is contained in:
Richard Smith 2024-11-16 20:12:17 +00:00 committed by Richard Smith
parent a33f4fcc9a
commit e6f2c188db
4 changed files with 54 additions and 19 deletions

View file

@ -42,14 +42,13 @@ python3 create_enums.py > dynamic/raylib/enums.py
echo "creating defines.py"
python3 create_define_consts.py > raylib/defines.py
python3 create_define_consts.py > dynamic/raylib/defines.py
python3 create_define_consts.py | awk '!seen[$0]++' > raylib/defines.py
python3 create_define_consts.py | awk '!seen[$0]++' > dynamic/raylib/defines.py
echo "creating pyi files"
python3 create_stub_pyray.py > pyray/__init__.pyi
python3 create_enums.py >> pyray/__init__.pyi
python3 create_stub_static.py >raylib/__init__.pyi