<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>round-rand</author_name>
  <author_url>https://blog.hatena.ne.jp/round-rand/</author_url>
  <blog_title>ランドML</blog_title>
  <blog_url>https://ml-rand-note.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Callableとは？ 基本的な使い方 引数・返り値を持つ場合 返り値を持たない場合 引数を持たない場合 実用例 コールバック関数 クラスのメンバ変数として定義 Callableとは？ Callableは「呼び出し可能なオブジェクト」の型を表すもので、関数を変数・引数として扱うときに役立ちます。 使うときには from typing import Callable のインポートが必要です。 基本的な使い方 引数・返り値を持つ場合 引数・返り値を持つ場合は、 Callable[[引数の型, ...], 戻り値の型] とします。 from typing import Callable # 引数の和…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Fpython%2Fcallable-usage&quot; title=&quot;【Python】Callable使い方｜関数を型として扱う - ランドML&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/r/round-rand/20260505/20260505115921.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-05-06 00:00:00</published>
  <title>【Python】Callable使い方｜関数を型として扱う</title>
  <type>rich</type>
  <url>https://ml-rand-note.hatenablog.com/entry/python/callable-usage</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
