{"title":"PEP 781: Adding __type_checking__ constant \u3092\u66f8\u3044\u305f","categories":["python"],"description":"\u307e\u3060PR\u6bb5\u968e\u306a\u306e\u3067 peps.python.org \u3067\u306f\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002Discussion\u306f\u3053\u3061\u3089\u3067\u3059\u3002 PEP 781: Adding __type_checking__ constant - PEPs - Discussions on Python.org \u4eca\u307e\u3067\u3082typing\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u907f\u3051\u308b\u305f\u3081\u306b from typing import TYPE_CHECKING \u306e\u4ee3\u308f\u308a\u306b TYPE_CHECKING = False \u3084 if False: # TYPE_CHECKING \u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304c\u66f8\u304b\u308c\u3066\u304d\u307e\u3057\u305f\u3002 typing.TYPE_CHECKING \u3068\u540c\u3058\u5f79\u5272\u3092\u6301\u3064\u5b9a\u6570\u3068\u3057\u3066 \u2026","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","width":"100%","url":"https://methane.hatenablog.jp/entry/2025/03/24/111928","version":"1.0","blog_url":"https://methane.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/methane/","image_url":null,"published":"2025-03-24 11:19:28","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F2025%2F03%2F24%2F111928\" title=\"PEP 781: Adding __type_checking__ constant \u3092\u66f8\u3044\u305f - methane\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","author_name":"methane","blog_title":"methane\u306e\u30d6\u30ed\u30b0"}