-
-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
This is an excellent tool and just what I was looking for. Thank you.
In order for the IDEs to recognize the fields as valid inputs we add __slots__
to all of our ctype.Structs.
Would it be possible to add a step to each struct def to add the slots?
e.g.:
class struct_c__SA_my_struct_t(Structure):
pass
class struct_c__SA_my_struct_t._pack_ = 1 # source:True
class struct_c__SA_my_struct_t._fields_ = [
('my_var1', ctypes.c_ubyte),
('my_var2', ctypes.c_uint16),
]
class struct_c__SA_my_struct_t.__slots__ = ('my_var1','my_var2')
Metadata
Metadata
Assignees
Labels
No labels