Skip to Content
전문가를 위한 파이썬(2판)
book

전문가를 위한 파이썬(2판)

by 루시아누 하말류, 강권학
November 2024
Beginner to intermediate
1064 pages
25h 21m
Korean
Hanbit Media, Inc.
Content preview from 전문가를 위한 파이썬(2판)
357
8
함수에서의 자료형 힌트
예제
8-23
mypy
top
_
test
.
py
실행 결과 (줄을 넘겨 보기 좋게 편집했다)
…/comparable/ $ mypy top_test.py
top_test.py:32: note:
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.
Start your free trial

You might also like

전문가를 위한 리액트

전문가를 위한 리액트

테자스 쿠마르
고성능 파이썬(2판)

고성능 파이썬(2판)

오현석, 미샤 고렐릭, 이안 오스발트

Publisher Resources

ISBN: 9791169211772