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

Function is_unexpected

numpy/tests/test_public_api.py:305–319  ·  view source on GitHub ↗

Check if this needs to be considered.

(name)

Source from the content-addressed store, hash-verified

303
304
305def is_unexpected(name):
306 """Check if this needs to be considered."""
307 if '._' in name or '.tests' in name or '.setup' in name:
308 return False
309
310 if name in PUBLIC_MODULES:
311 return False
312
313 if name in PUBLIC_ALIASED_MODULES:
314 return False
315
316 if name in PRIVATE_BUT_PRESENT_MODULES:
317 return False
318
319 return True
320
321
322# These are present in a directory with an __init__.py but cannot be imported

Callers 2

find_unexpected_membersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected