Browse Source

Update docs/ko/docs/tutorial/extra-models.md

change word '타입 주석' to '타입 어노테이션'

Co-authored-by: Lee Yesong (이예송) <[email protected]>
pull/13063/head
timothy 2 months ago
committed by jts8257
parent
commit
958c8c9a17
  1. 2
      docs/ko/docs/tutorial/extra-models.md

2
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`을 사용해야 합니다.
만약 타입 주석에 사용한다면, 다음과 같이 수직 막대(|)를 사용할 수 있습니다:

Loading…
Cancel
Save