Turn this: ```python class S(ctypes.Structure): _fields_ = [ ('a', ctypes.c_int), ('b', ctypes.c_char_p) ] ``` Into this: ```python 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 <!-- gh-linked-prs --> ### Linked PRs * gh-153781 * gh-154031 * gh-154038 * gh-154040 * gh-154091 * gh-154169 <!-- /gh-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@ctypes.util.structwith endian #154038@ctypes.util.structwith string annotations #154040