from collections.abc import Sequence
from typing import Dict, List, Tuple, NewType
Sequence[Tuple[Tuple[str,int], Dict[str, str]]]
をデータ・タイプとして定義したいですが、
例:
def fun( x : Sequence[Tuple[Tuple[str,int], Dict[str, str]]]) -> None:
return
下記のようなエラーが出ました。
TypeError: 'ABCMeta' object is not subscriptable
Sequence(*args, **kwargs)
All the operations on a read-only sequence.
Concrete subclasses must override new or init, getitem, and len.
原因は何でしょうか❓

回答1件
あなたの回答
tips
プレビュー