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

@ -45,8 +45,8 @@ def process(filename):
strval = str(e['value']).strip()
if strval.startswith("__"):
continue
if strval in known_enum:
print(e['name'] + " = raylib." + strval)
# if strval in known_enum:
# print(e['name'] + " = raylib." + strval)
elif strval in known_define:
print(e['name'] + " = " + strval)
else: