From 958c8c9a17e1dc22b2760dc4d3f958c7e6dd6171 Mon Sep 17 00:00:00 2001 From: timothy <53824764+timothy-jeong@users.noreply.github.com> Date: Wed, 12 Feb 2025 00:29:17 +0900 Subject: [PATCH] Update docs/ko/docs/tutorial/extra-models.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit change word '타입 주석' to '타입 어노테이션' Co-authored-by: Lee Yesong (이예송) --- docs/ko/docs/tutorial/extra-models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ko/docs/tutorial/extra-models.md b/docs/ko/docs/tutorial/extra-models.md index 4e8231d0b..65e266958 100644 --- a/docs/ko/docs/tutorial/extra-models.md +++ b/docs/ko/docs/tutorial/extra-models.md @@ -186,7 +186,7 @@ OpenAPI에서는 이를 `anyOf`로 정의합니다. 위의 예제에서는 `response_model` 인자 값으로 `Union[PlaneItem, CarItem]`을 전달합니다. -이 경우, 이를 **타입 주석(type annotation)** 이 아닌 **인자 값(argument value)** 으로 전달하고 있기 때문에 Python 3.10에서도 `Union`을 사용해야 합니다. +이 경우, 이를 **타입 어노테이션(type annotation)** 이 아닌 **인자 값(argument value)** 으로 전달하고 있기 때문에 Python 3.10에서도 `Union`을 사용해야 합니다. 만약 타입 주석에 사용한다면, 다음과 같이 수직 막대(|)를 사용할 수 있습니다: