MCPcopy Create free account
hub / github.com/numpy/numpy / __dir__

Function __dir__

numpy/__init__.py:336–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

334 "{!r}".format(__name__, attr))
335
336 def __dir__():
337 public_symbols = globals().keys() | {'testing'}
338 public_symbols -= {
339 "core", "matrixlib",
340 # These were moved in 1.25 and may be deprecated eventually:
341 "ModuleDeprecationWarning", "VisibleDeprecationWarning",
342 "ComplexWarning", "TooHardError", "AxisError"
343 }
344 return list(public_symbols)
345
346 # Pytest testing
347 from numpy._pytesttester import PytestTester

Callers

nothing calls this directly

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected