types#
- einspect.types.ptr#
Dynamic typing alias for ctypes.pointer.
Resolves to the _Ptr class at runtime to allow for generic subscripting.
- class einspect.types._Ptr(*args, **kwargs)#
Bases:
_Pointer
Runtime alias for ctypes.pointer to allow generic subscripting.
- classmethod __class_getitem__(item)#
Return a ctypes.POINTER of the given type.
- static __new__(cls, *args, **kwargs)#
Alias to ctypes.pointer(*args, **kwargs)
- class einspect.types.Array#
A typing alias for ctypes.Array for non-simple types. Resolves to ctypes.Array directly at runtime. __getitem__ is hinted returns the Array generic type, instead of Any, like the ctypes.Array typeshed currently does.