module documentation
(source)

Different utilities for the numpy brains
Function infer​_numpy​_member Undocumented
Function looks​_like​_numpy​_member Returns True if the node is a member of numpy whose name is member_name.
Function numpy​_supports​_type​_hints Returns True if numpy supports type hints
Constant NUMPY​_VERSION​_TYPE​_HINTS​_SUPPORT Undocumented
Function _get​_numpy​_version Return the numpy version number if numpy can be imported. Otherwise returns ('0', '0', '0')
Function _is​_a​_numpy​_module Returns True if the node is a representation of a numpy module.
def infer_numpy_member(src, node, context=None): (source)

Undocumented

def looks_like_numpy_member(member_name, node): (source)
Returns True if the node is a member of numpy whose name is member_name.
Parameters
member​_name:strname of the member
node:NodeNGnode to test
Returns
boolTrue if the node is a member of numpy
def numpy_supports_type_hints(): (source)
Returns True if numpy supports type hints
Returns
boolUndocumented
NUMPY_VERSION_TYPE_HINTS_SUPPORT: tuple[str, ...] = (source)

Undocumented

Value
('1', '20', '0')
def _get_numpy_version(): (source)
Return the numpy version number if numpy can be imported. Otherwise returns ('0', '0', '0')
Returns
Tuple[str, str, str]Undocumented
def _is_a_numpy_module(node): (source)

Returns True if the node is a representation of a numpy module.

For example in :
import numpy as np x = np.linspace(1, 2)

The node <Name.np> is a representation of the numpy module.

Parameters
node:Namenode to test
Returns
boolTrue if the node is a representation of the numpy module.