class documentation

class _NumpyPlugin(Plugin):

View In Hierarchy

A mypy plugin for handling versus numpy-specific typing tasks.
Method get​_additional​_deps Handle all import-based overrides.
Method get​_type​_analyze​_hook Set the precision of platform-specific numpy.number subclasses.
def get_additional_deps(self, file):

Handle all import-based overrides.

  • Import platform-specific extended-precision numpy.number subclasses (e.g. numpy.float96, numpy.float128 and numpy.complex256).
  • Import the appropriate ctypes equivalent to numpy.intp.
Parameters
file:MypyFileUndocumented
Returns
list[tuple[int, str, int]]Undocumented
def get_type_analyze_hook(self, fullname):

Set the precision of platform-specific numpy.number subclasses.

For example: numpy.int_, numpy.longlong and numpy.longdouble.

Parameters
fullname:strUndocumented
Returns
None|_HookFuncUndocumented