{"id":2061,"date":"2018-09-29T17:30:25","date_gmt":"2018-09-29T08:30:25","guid":{"rendered":"https:\/\/blog.ymyzk.com\/?p=2061"},"modified":"2018-11-04T22:20:30","modified_gmt":"2018-11-04T13:20:30","slug":"creating-packages-using-pep-561","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2018\/09\/creating-packages-using-pep-561\/","title":{"rendered":"PEP 561 \u306b\u6e96\u62e0\u3057\u305f\u578b\u30d2\u30f3\u30c8\u3092\u542b\u3080\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f5c\u308a\u65b9"},"content":{"rendered":"

\u3053\u306e\u8a18\u4e8b\u3067\u306f Python 3.7 \u3067\u63a1\u629e\u3055\u308c\u305f PEP 561 Distributing and Packaging Type Information<\/a> \u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u89e3\u8aac\u3057\uff0cPEP 561 \u306b\u6e96\u62e0\u3057\u305f\uff0c\u578b\u30d2\u30f3\u30c8\u3092\u542b\u3080\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f5c\u6210\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\uff0e
\n<\/p>\n

PEP 561 \u4ee5\u524d\u306e\u578b\u60c5\u5831\u306e\u914d\u5e03\u4e8b\u60c5<\/h2>\n

PEP 561 \u4ee5\u524d\u306f\u4e3b\u306b typeshed<\/a> \u3092\u901a\u3058\u3066\uff0c\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u30fb\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u306e\u578b\u60c5\u5831\u304c\u914d\u5e03\u3055\u308c\u3066\u3044\u307e\u3057\u305f\uff0etypeshed \u306b\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u958b\u767a\u8005\u304c\u540c\u610f\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u578b\u60c5\u5831\u3057\u304b\u767b\u9332\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u5236\u9650\u3084\uff0c\u3069\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u578b\u60c5\u5831\u304b\u3068\u3044\u3046\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3068\u3044\u3046\u554f\u984c\uff0ctypeshed \u306e\u30e1\u30f3\u30c6\u30ca\u30fc\u306b\u3088\u308b\u30ec\u30d3\u30e5\u30fc\u304c\u5fc5\u8981\u306a\u305f\u3081\u30b9\u30b1\u30fc\u30eb\u3057\u3065\u3089\u3044\u3068\u3044\u3063\u305f\u554f\u984c\u304c\u3042\u308a\u307e\u3057\u305f\uff0e<\/p>\n

\u8a73\u7d30\u306f\u5272\u611b\u3057\u307e\u3059\u304c\uff0cPEP 484 \u306e “Storing and distributing stub files”<\/a> \u306e\u7bc0\u306b\u3082\u30b9\u30bf\u30d6\u30d5\u30a1\u30a4\u30eb (\u578b\u60c5\u5831) \u306e\u914d\u5e03\u65b9\u6cd5\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3057\u305f\uff0e\u3057\u304b\u3057\uff0c\u3042\u307e\u308a\u4f7f\u3044\u3084\u3059\u3044\/\u5206\u304b\u308a\u3084\u3059\u3044\u3082\u306e\u3068\u306f\u8a00\u3048\u305a\uff0c\u73fe\u5728\u3067\u306f PEP 561 \u306e\u65b9\u6cd5\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\uff0e<\/p>\n

\u307e\u305f\uff0cmypy \u3067\u306f MYPYPATH<\/code> \u3092\u4f7f\u3063\u3066\uff0c\u30b9\u30bf\u30d6\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3044\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u3066\u578b\u691c\u67fb\u3092\u884c\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\uff0e\u3057\u304b\u3057\uff0c\u3053\u308c\u306f PEP 484 \u3067\u5b9a\u3081\u3089\u308c\u305f\u7bc4\u56f2\u5916\u306e mypy \u72ec\u81ea\u306e\u6a5f\u80fd\u3067\u3057\u305f\uff0e<\/p>\n

PEP 561 \u306e\u7c21\u5358\u306a\u89e3\u8aac<\/h2>\n

PEP 561 \u3067\u306f\u4e3b\u306b\u6b21\u306e\u3053\u3068\u304c\u5b9a\u3081\u3089\u308c\u3066\u3044\u307e\u3059\uff0e<\/p>\n