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

Function test_flatiter_method_signatures

numpy/_core/tests/test_indexing.py:1696–1706  ·  view source on GitHub ↗
(methodname: str)

Source from the content-addressed store, hash-verified

1694@pytest.mark.skipif(sys.flags.optimize == 2, reason="Python running -OO")
1695@pytest.mark.parametrize("methodname", ["__array__", "copy"])
1696def test_flatiter_method_signatures(methodname: str):
1697 method = getattr(np.flatiter, methodname)
1698 assert callable(method)
1699
1700 try:
1701 sig = inspect.signature(method)
1702 except ValueError as e:
1703 pytest.fail(f"Could not get signature for np.flatiter.{methodname}: {e}")
1704
1705 assert "self" in sig.parameters
1706 assert sig.parameters["self"].kind is inspect.Parameter.POSITIONAL_ONLY

Callers

nothing calls this directly

Calls 1

failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…