Prepare for changes in generated #define and global variables

These will be changing to annotation statements, so FixWxPrefix needs to
be able to detect this still (proper thing to look for in this case is
`ast.AnnAssign`).
This commit is contained in:
lojack5
2023-10-17 18:40:45 -06:00
parent fa2bde419f
commit 7f74a5fd65

View File

@@ -122,6 +122,9 @@ class FixWxPrefix(object):
names.append(item.name)
elif isinstance(item, ast.FunctionDef):
names.append(item.name)
elif isinstance(item, ast.AnnAssign):
if isinstance(item.target, ast.Name):
names.append(item.target.id)
names = list()
filename = 'wx/core.pyi'