<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tiginkgo</author_name>
  <author_url>https://blog.hatena.ne.jp/tiginkgo/</author_url>
  <blog_title>初心者のためのpython入門</blog_title>
  <blog_url>https://tiginkgo.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>前書き 今回は、typingモジュールについて紹介します。 これを利用することにより、型に関するアノテーション(注釈)をつけることができます。 使用例 まずは、基本的なアノテーションを見てみましょう。 def is_even_number(num: int) -&gt; bool: # 偶数か判定 return num % 2 == 0 引数と返り値にアノテーションがつけられています。 num: int: 引数numがint型 -&gt; str: 関数is_even_numberの返り値がbool型 次に、少し応用的なアノテーションを見てみましょう。 from typing import List, C…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftiginkgo.hateblo.jp%2Fentry%2F20191227%2F1577379194&quot; title=&quot;typing: 型のヒント - 初心者のためのpython入門&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-27 01:53:14</published>
  <title>typing: 型のヒント</title>
  <type>rich</type>
  <url>https://tiginkgo.hateblo.jp/entry/20191227/1577379194</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
