Undocumented
Function | get |
Undocumented |
Function | run |
Clears the cache and run mypy before running any of the typing tests. |
Function | strip |
re.sub helper function for stripping module names. |
Function | test |
Validate that the code in path properly during runtime. |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Validate that mypy correctly infers the return-types of the expressions in path . |
Function | test |
Undocumented |
Constant | CACHE |
Undocumented |
Constant | DATA |
Undocumented |
Constant | FAIL |
Undocumented |
Constant | FORMAT |
Undocumented |
Constant | LINENO |
Undocumented |
Constant | MISC |
Undocumented |
Constant | MYPY |
Undocumented |
Constant | OUTPUT |
Undocumented |
Constant | PASS |
Undocumented |
Constant | REVEAL |
Undocumented |
Function | _construct |
Undocumented |
Function | _construct |
Undocumented |
Function | _key |
Split at the first occurrence of the : character. |
Function | _parse |
Broken description |
Function | _strip |
Strip the filename from a mypy message. |
Function | _test |
Undocumented |
Function | _test |
Error-reporting helper function for test_reveal . |
Constant | _FAIL |
Undocumented |
Constant | _FAIL |
Undocumented |
Constant | _REVEAL |
Undocumented |
Constant | _STRIP |
Undocumented |
@pytest.mark.skipif(
@pytest.fixture(
def run_mypy(): (source) ¶
Clears the cache and run mypy before running any of the typing tests.
The mypy results are cached in OUTPUT_MYPY
for further use.
The cache refresh can be skipped using
NUMPY_TYPING_TEST_CLEAR_CACHE=0 pytest numpy/typing/tests
@pytest.mark.skipif(
@pytest.mark.parametrize(
def test_code_runs(path:
str
):
(source)
¶
Validate that the code in path
properly during runtime.
@pytest.mark.skipif(
def test_extended_precision(): (source) ¶
Undocumented
@pytest.mark.skipif(
@pytest.mark.parametrize(
def test_fail(path:
str
):
(source)
¶
Undocumented
@pytest.mark.skipif(
@pytest.mark.parametrize(
def test_reveal(path:
str
):
(source)
¶
Validate that mypy correctly infers the return-types of
the expressions in path
.
@pytest.mark.skipif(
@pytest.mark.parametrize(
def test_success(path): (source) ¶
Undocumented
Undocumented
Value |
|
Split at the first occurrence of the : character.
Windows drive-letters (e.g. C:) are ignored herein.
Extract and parse all ``" # E: "`` comments from the passed file-like object. All format keys will be substituted for their respective value from `FORMAT_DICT`, *e.g.* ``"{float64}"`` becomes ``"numpy.floating[numpy._typing._64Bit]"``.
str
, expression: str
, error: str
, expected_error: None|str
, lineno: int
):
(source)
¶
Undocumented
str
, expression: str
, reveal: str
, expected_reveal: str
, lineno: int
):
(source)
¶
Error-reporting helper function for test_reveal
.
Undocumented
Value |
|