期末の追い込みで忙しいですね‥! ただようやく終わりが見えてきたので、そろそろプログラミング修行にちゃんと時間を避けそうです さて、最近作ったプログラムで、参考にさせていただいたコードの中で分からないものがあったので整理します。
On current master, boolean arrays do not test positive for being instances of types.Boolean. AFAIK this works for all other types of arrays.
from typing import Union def f(x : Union[int, float]): if isinstance(x, float): print("b", x) elif isinstance(x, int): print("a", x) with --warn-unreachable returns ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する