-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Open
Labels
Description
Turn this:
class S(ctypes.Structure):
_fields_ = [ ('a', ctypes.c_int), ('b', ctypes.c_char_p) ]
Into this:
class S(ctypes.Structure):
a : ctypes.c_int
b : ctypes.c_char_p
See discussion on https://discuss.python.org/t/annotation-based-sugar-for-ctypes/26579
Working on implementation
Eclips4, chgnrdv, PurityLake, zwergziege, serhiy-storchaka and 9 morevasily-v-ryabov