hyb
2025-12-23 10f3a1daddfbc7fa3dd2069197d83e8b6ef19176
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Ë
Kñúh^ã    óè—UddlZddlZddlZddlZddlZddlmZddlm    Z    ddl
Z
dejvZ e re dvrdZ e
jje d¬«Z    dd    lmZd
Ze    r dd lmZdd lmZej0j3ej0j5e«d «Zej0j3ed«Zej0j3ed«Zej0j3ed«Zej0j3ed«Z ej0j3ed«Z!ej0j3ed«Z"ee#«Z$ee%e#e%fe&d<de%de%fd„Z'de%de(e)e%ffd„Z*dejVe%de%fd„Z,e
jZdd¬«d*d„«Z.de%dd fd!„Z/d"Z0d#Z1d$Z2e
jjfe
jjed%¬«e
jjid&e/ee««d*d'„«««Z5e
jjfe
jjed%¬«e
jjid&e/e««d&e%ddfd(„«««Z6e
jjfe
jjed%¬«e
jjid&e/e««d&e%ddfd)„«««Z7y#e$rdZYŒwxYw)+éN)Ú defaultdict)Ú TYPE_CHECKINGÚNPY_RUN_MYPY_IN_TESTSUITE)Ú0ÚÚfalseTz#`NPY_RUN_MYPY_IN_TESTSUITE` not set)Úreason)ÚapiF)ÚIterator)Ú ParameterSetÚdataÚpassÚfailÚrevealÚmisczmypy.iniz .mypy_cacheÚ OUTPUT_MYPYÚkeyÚreturncó¬—tjj|«\}}tjj||j    dd«d«S)zySplit at the first occurrence of the ``:`` character.
 
    Windows drive-letters (*e.g.* ``C:``) are ignored herein.
    ú:ér)ÚosÚpathÚ
splitdriveÚjoinÚsplit)rÚdriveÚtails   úQH:\Change_password\venv_build\Lib\site-packages\numpy/typing/tests/test_typing.pyÚ    _key_funcr 4sA€ô
—'‘'×$Ñ$ SÓ)K€Eˆ4Ü 7‰7<‰<˜˜tŸz™z¨#¨qÓ1°!Ñ4Ó 5Ð5óÚmsgcó¨—tjj|«\}}|jdd«\}}}t    |«|j «fS)z7Strip the filename and line number from a mypy message.ré)rrrrÚintÚstrip)r"Ú_rÚlinenos    rÚ_strip_filenamer)=sE€äg‰g× Ñ  Ó%G€A€tØ—Z‘Z  QÓ'N€A€vˆsÜ ˆv‹;˜Ÿ    ™    › Ð #Ð#r!Úmatchcó(—|j«dS)z4`re.sub` helper function for stripping module names.r)Úgroups)r*s rÚ
strip_funcr-Ds€à <‰<‹>˜!Ñ Ðr!Úmodule)ÚscopeÚautousecó¶—tjjt«rBt    tj
j dd««rtjt«tjd«}ttttfD]Æ}tj dt"dt|g«\}}}|rt%j&d|›d«n |dvrt%j&d    |›d
|›d«d }d }|j)d «D]J}d|vrŒ|€ t+|«}||›d z }|j-|«€Œ/t.|j1|«d }d }ŒLŒÈy )zø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
    ÚNUMPY_TYPING_TEST_CLEAR_CACHETz(\s+)?\^(\~+)?z --config-filez --cache-dirz Unexpected mypy standard error
 
F>rrzUnexpected mypy exit code: z
 
rNú
znote:)rrÚisdirÚ    CACHE_DIRÚboolÚenvironÚgetÚshutilÚrmtreeÚreÚcompileÚPASS_DIRÚ
REVEAL_DIRÚFAIL_DIRÚMISC_DIRr
ÚrunÚMYPY_INIÚpytestrrr r*rÚappend)Ú split_patternÚ    directoryÚstdoutÚstderrÚ    exit_codeÚ
str_concatÚfilenameÚis        rÚrun_mypyrMIs@€ô     ‰ ‰ ”iÔ Ü ”—‘—‘Р?ÀÓFÔ Gä ‰ ”iÔ ä—J‘JÐ0Ó1€Mܤ
¬H´hÐ?ò ˆ    ä$'§G¡GØ Ü Ø Ü Ø ð -
ó% Ñ!ˆ˜    ñ Ü K‰KÐ<¸V¸HÐEÀuÕ MØ ˜fÑ $Ü K‰KÐ5°i°[ÀÀVÀHÐMÈuÔ Uàˆ
Ø#ˆØ—‘˜dÓ#ò
     ˆAؘ!‰|ØØÐÜ$ Q›<à ˜Q˜C˜r˜(Ñ "ˆJØ×"Ñ" 1Ó%Ñ1ܘHÑ%×,Ñ,¨ZÔ8ؐ
Ø‘ñ
     ñ! r!Ú directorieszIterator[ParameterSet]c'ó$K—|D]‡}tj|«D]m\}}}|D]b}tjj|«\}}|dvrŒ*tjj    ||«}t j ||¬«–—ŒdŒoŒ‰y­w)N)z.pyiz.py)Úid)rÚwalkrÚsplitextrrCÚparam)    rNrFÚrootr'ÚfilesÚfnameÚ short_fnameÚextÚfullpaths             rÚget_test_casesrZws‹èø€Ø ò=ˆ    Ü Ÿg™g iÓ0ò    =‰NˆD!UØò =Ü#%§7¡7×#3Ñ#3°EÓ#:Ñ  ˜SؘoÑ-ØäŸ7™7Ÿ<™<¨¨eÓ4Ü—l‘l 8° Ô<Ó<ñ  =ñ    =ñ=ùs‚BBz    zR
_______________________________________________________________________________
 
z{}:{} - reveal mismatch:
 
{}zMypy is not installedrcóN—t}||vrytjj|«}g}||D]H}t    |«\}}|j d«j «}|j|›d|›d|›«ŒJ|r'tjdj|«d¬«yy)Nzerror:rz - r3F©Úpytrace) rrrÚrelpathr)Ú removeprefixÚlstriprDrCrr)rÚ output_mypyr^ÚmessagesÚmessager(Úcontents       rÚ    test_passre‹s¦€ô
€Kà ;ÑØäg‰go‰o˜dÓ#€Gð€HؘtÑ$ò;ˆÜ)¨'Ó2‰ˆØ×&Ñ& xÓ0×7Ñ7Ó9ˆØ‰˜7˜) 1 V H¨C°¨yÐ9Õ:ð;ñ
܏ ‰ D—I‘I˜hÓ'°Ö7ðr!cór—d}t}||vrytjj|«}g}||D]R}t    |«\}}t j |t«}tj|||«}|j|«ŒT|r-tj|«}    tj|    d¬«yy)z[Validate that mypy correctly infers the return-types of
    the expressions in `path`.
    TNFr\)rrrr^r)ÚtextwrapÚindentÚ _FAIL_INDENTÚ_FAIL_MSG_REVEALÚformatrDÚ    _FAIL_SEPrrCr)
rÚ__tracebackhide__rar^ÚfailuresÚ
error_liner(Ú    error_msgr    Úreasonss
          rÚ test_revealrr¢s¬€ðÐä€KØ ;ÑØäg‰go‰o˜dÓ#€Gð€HØ! $Ñ'ò ˆ
Ü+¨JÓ7ш    Ü—O‘O I¬|Ó<ˆ    Ü!×(Ñ(¨°&¸)ÓDˆØ‰˜Õð     ñ Ü—.‘. Ó*ˆÜ ‰ G UÖ+ðr!cót—tjj|«\}}|jtj«dd\}}t
j j|›d|›|«}|€J‚|j€J‚t
j j|«}|jj|«y)z9Validate that the code in `path` properly during runtime.éþÿÿÿNú.) rrrRrÚsepÚ    importlibÚutilÚspec_from_file_locationÚloaderÚmodule_from_specÚ exec_module)rÚpath_without_extensionr'ÚdirnamerKÚspecÚ test_modules       rÚtest_code_runsr¾s¤€ô
!#§¡× 0Ñ 0°Ó 6ÑИAØŸ
™
¤2§6¡6Ó*¨2¨3Ð/Ñ€GˆXä >‰>× 1Ñ 1Ø ˆ)1XJРó €Dð Ð ÐÐ Ø ;‰;Ð "Ð"Ð "ä—.‘.×1Ñ1°$Ó7€K؇KK×јKÕ(r!)rN)8Úimportlib.utilrwrr;r9rgÚ collectionsrÚtypingrrCr7ÚRUN_MYPYÚmarkÚskipifÚ
pytestmarkÚmypyr
ÚNO_MYPYÚ ImportErrorÚcollections.abcr Ú_pytest.mark.structuresr rrr~Ú__file__ÚDATA_DIRr=r?r>r@rBr5ÚlistrÚstrÚ__annotations__r Útupler%r)ÚMatchr-ÚfixturerMrZrirlrjÚslowÚ parametrizererrr©r!rú<module>r™sðÜÛ    Û    Û ÛÝ#Ý ã ð
'¨"¯*©*Ð 4€Ù Р2Ñ2Ø€Hð[‰[× Ñ Ø€LØ 0ð ó€
ð Ýð€GáÝ(õ5à 7‰7<‰<˜Ÿ™Ÿ™¨Ó1°6Ó :€Ø 7‰7<‰<˜ &Ó )€Ø 7‰7<‰<˜ &Ó )€Ø W‰W\‰\˜( HÓ -€
Ø 7‰7<‰<˜ &Ó )€Ø 7‰7<‰<˜ *Ó -€Ø G‰GL‰L˜ =Ó 1€    ñ,7°tÓ+<€ ˆ[˜˜d 3™i˜Ñ (Ó<ð63ð6˜3ó6ð$˜ð$  s¨C x¡ó$ðb—h‘h˜s‘mð¨óð
€‡h¨Ô-ò* ó.ð* ðZ    = ð    =Ð)Aó    =ð€ Ø $€    ðÐð
‡×ÑØ‡×ѐGÐ$;ÐÓ<؇×ј¡°¸(Ó!CÓDò8óEó=óð8ð(‡×ÑØ‡×ѐGÐ$;ÐÓ<؇×ј¡°
Ó!;Ó<ð,cð,˜dò,ó=ó=óð,ð2‡×ÑØ‡×ѐGÐ$;ÐÓ<؇×ј¡°Ó!9Ó:ð )˜ð ) ò )ó;ó=óñ )øðMò؃GðúsÁK&Ë&K1Ë0K1