{"width":"100%","author_url":"https://blog.hatena.ne.jp/podhmo/","description":"Type hints python\u3067\u3082\u578b\u3092\u66f8\u304d\u305f\u3044\u3067\u3059\u3088\u306d\u3002type hints\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u304c def hello(name): return f\"hello {name}!\" \u3053\u3046\u3002 def hello(name: str) -> str: return f\"hello {name}!\" \u578b\u304c\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002 Literal types \u3068\u3053\u308d\u3067\u578b\u306e\u6307\u5b9a\u306f\u6587\u5b57\u5217\u578b\u3060\u3051\u3067\u5341\u5206\u3067\u3059\u304b\uff1f\u7279\u5b9a\u306e\u6587\u5b57\u5217\u3060\u3051\u306b\u5024\u306e\u7bc4\u56f2\u3092\u5236\u9650\u3057\u305f\u304f\u306a\u3044\u3067\u3059\u304b\uff1f Lietral types\u304c\u3042\u308a\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3053\u3046\u3044\u3046\u95a2\u6570\u304c \"hello\" \u3068 \"bye\" \u3060\u3051\u3092\u8a31\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001 def greet(name: str\u2026","height":"190","image_url":null,"version":"1.0","author_name":"podhmo","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2019%2F10%2F29%2F221912\" title=\"mypy\u306eLiteral types\u306e\u304a\u4f9b\u306b\u306f--strict-equality\u30aa\u30d7\u30b7\u30e7\u30f3\u3092 - podhmo&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["mypy","python","typing"],"published":"2019-10-29 22:19:12","provider_name":"Hatena Blog","url":"https://pod.hatenablog.com/entry/2019/10/29/221912","title":"mypy\u306eLiteral types\u306e\u304a\u4f9b\u306b\u306f--strict-equality\u30aa\u30d7\u30b7\u30e7\u30f3\u3092","provider_url":"https://hatena.blog","blog_title":"podhmo's diary","type":"rich","blog_url":"https://pod.hatenablog.com/"}