<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuta-nakata</author_name>
  <author_url>https://blog.hatena.ne.jp/yuta-nakata/</author_url>
  <blog_title>Yuta NakataのBlog</blog_title>
  <blog_url>https://www.yuta-nakata.net/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>IT</anon>
  </categories>
  <description>Python の型ヒントは「書いただけ」では何も起きません。mypy や pyright と組み合わせて初めて、実行前にバグを潰す仕組みになります。書き方からチェッカーの設定、段階的な導入手順までをまとめます。 型ヒントは実行時に検査されない 基本: 引数・戻り値・変数に書く None は | None と絞り込みで扱う type 文とジェネリクス(PEP 695) TypedDict と Protocol mypy と pyright を導入する 段階的に strict へ寄せる よくあるエラーと対処 Python 3.14 での注意点 まとめ 関連記事 参考文献 型ヒントは実行時に検査され…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yuta-nakata.net%2Fentry%2F2026%2F07%2F26%2F210355&quot; title=&quot;【実践】Python型ヒント入門｜mypy・pyrightでバグを実行前に潰す - Yuta NakataのBlog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yuta-nakata/20260726/20260726210540.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-07-26 21:03:55</published>
  <title>【実践】Python型ヒント入門｜mypy・pyrightでバグを実行前に潰す</title>
  <type>rich</type>
  <url>https://www.yuta-nakata.net/entry/2026/07/26/210355</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
