Undocumented
Constant | CACHE_DIR |
Undocumented |
Constant | DATA_DIR |
Undocumented |
Constant | FAIL_DIR |
Undocumented |
Constant | FORMAT_DICT |
Undocumented |
Constant | LINENO_MAPPING |
Undocumented |
Constant | MISC_DIR |
Undocumented |
Constant | MYPY_INI |
Undocumented |
Constant | NO_MYPY |
Undocumented |
Constant | OUTPUT_MYPY |
Undocumented |
Constant | PASS_DIR |
Undocumented |
Constant | REVEAL_DIR |
Undocumented |
Function | _construct_ctypes_dict |
Undocumented |
Function | _construct_format_dict |
Undocumented |
Function | _key_func |
Split at the first occurrence of the : character. |
Function | _parse_reveals |
Broken description |
Function | _strip_filename |
Strip the filename from a mypy message. |
Function | _test_fail |
Undocumented |
Function | _test_reveal |
Error-reporting helper function for test_reveal . |
Function | get_test_cases |
Undocumented |
Function | run_mypy |
Clears the cache and run mypy before running any of the typing tests. |
Function | strip_func |
re.sub helper function for stripping module names. |
Function | test_code_runs |
Validate that the code in path properly during runtime. |
Function | test_extended_precision |
Undocumented |
Function | test_fail |
Undocumented |
Function | test_reveal |
Validate that mypy correctly infers the return-types of the expressions in path . |
Function | test_success |
Undocumented |
Constant | _FAIL_MSG1 |
Undocumented |
Constant | _FAIL_MSG2 |
Undocumented |
Constant | _REVEAL_MSG |
Undocumented |
dict[ int, str]
=
Undocumented
Value |
|
Split at the first occurrence of the : character.
Windows drive-letters (e.g. C:) are ignored herein.
Parameters | |
key:str | Undocumented |
Returns | |
str | Undocumented |
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]"``.
Parameters | |
file:IO[ | Undocumented |
Returns | |
tuple[ | Undocumented |
Parameters | |
msg:str | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
path:str | Undocumented |
expression:str | Undocumented |
error:str | Undocumented |
expected_error:None|str | Undocumented |
lineno:int | Undocumented |
test_reveal
.Parameters | |
path:str | Undocumented |
expression:str | Undocumented |
reveal:str | Undocumented |
expected_reveal:str | Undocumented |
lineno:int | Undocumented |
Undocumented
Parameters | |
directory:str | Undocumented |
Returns | |
Iterator[ | Undocumented |
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
re.sub
helper function for stripping module names.Parameters | |
match:re.Match[ | Undocumented |
Returns | |
str | Undocumented |
path
properly during runtime.Parameters | |
path:str | Undocumented |
Undocumented
Undocumented
Parameters | |
path:str | Undocumented |
path
.Parameters | |
path:str | Undocumented |
Undocumented