#Typing

3 편의 글

모던 파이썬 고급 #6 typing 고급 — Variance, ParamSpec, Self, overload
8 분 소요

모던 파이썬 고급 #6 typing 고급 — Variance, ParamSpec, Self, overload

중급 typing의 다음 단계 — covariance/contravariance, ParamSpec과 Concatenate, Self, TypeGuard/TypeIs, @overload까지 정리합니다.

모던 파이썬 중급 #2 typing 본격 — Generic, Protocol, TypedDict, Literal
7 분 소요

모던 파이썬 중급 #2 typing 본격 — Generic, Protocol, TypedDict, Literal

기초의 타입 힌트 다음 단계 — 타입을 매개변수화하는 Generic, 덕 타이핑을 정확히 적는 Protocol, dict 모양 명시 TypedDict, 좁은 union Literal까지 정리합니다.

모던 파이썬 기초 #2 변수/기본 타입과 타입 힌트
7 분 소요

모던 파이썬 기초 #2 변수/기본 타입과 타입 힌트

파이썬은 동적 언어지만, 모던 파이썬은 처음부터 타입을 적습니다. int/str/bool/None과 빌트인 제네릭, int | None 단축, mypy/pyright까지 정리합니다.