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
Linked PRs
Turn this:
Into this:
See discussion on https://discuss.python.org/t/annotation-based-sugar-for-ctypes/26579
Working on implementation
Linked PRs
ctypesstructures #153781