MCPcopy Index your code
hub / github.com/numpy/numpy / __getattr__

Function __getattr__

numpy/f2py/__init__.py:66–76  ·  view source on GitHub ↗
(attr)

Source from the content-addressed store, hash-verified

64
65
66def __getattr__(attr):
67
68 # Avoid importing things that aren't needed for building
69 # which might import the main numpy module
70 if attr == "test":
71 from numpy._pytesttester import PytestTester
72 test = PytestTester(__name__)
73 return test
74
75 else:
76 raise AttributeError(f"module {__name__!r} has no attribute {attr!r}")
77
78
79def __dir__():

Callers

nothing calls this directly

Calls 1

PytestTesterClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…