Fix for RichTextLineVector:

This one has probably been in the generated type-stub for ages.
One of the base classes in the generated stub was generated as `RichTextLine*`.
This commit is contained in:
lojack5
2025-01-12 04:33:22 -07:00
parent 58317175cd
commit e76f298bf1

View File

@@ -322,7 +322,8 @@ class PiWrapperGenerator(generators.WrapperGeneratorBase, FixWxPrefix):
t = typedef.type.replace('>', '')
t = t.replace(' ', '')
bases = t.split('<')
bases = [self.fixWxPrefix(b, True) for b in bases]
bases = (self.fixWxPrefix(b, True) for b in bases)
bases = [b.replace('*', '') for b in bases] # fix for RichTextLine*
name = self.fixWxPrefix(typedef.name)
# Now write the Python equivalent class for the typedef