Revealed type is “typing.Iterator[Tuple[builtins.int, builtins.str]]” ❶
top_test.py:33: note:
Revealed type is “builtins.list[Tuple[builtins.int, builtins.str]]”
top_test.py:34: note:
Revealed type is “builtins.list[Tuple[builtins.int, builtins.str]]” ❷
top_test.py:41: note:
Revealed type is “builtins.list[builtins.object*]” ❸
top_test.py:43: error:
Value of type variable “LT” of “top” cannot be “object” ❹
Found 1 error in 1 file (checked 1 source file)
❶
test
_
top
_
tuples
()
함수 안에서,
reveal
_
type
(
series
)
는 명시적으로 선언된 대로
Iterator ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.