[Debug/Mypy] List type annotation error - expected ... got ...

Minzi·2024년 12월 13일

Debug Log

목록 보기
3/3

typing.List only allows one kind of element in itself.

To fix this error:
1. -> List[Any]
2. Define List by [Any]

a = List[Any]
  1. Since a[0] == typing.Any, override
a = a[1:]

0개의 댓글