Browse Source

๐ŸŒ Update Korean translation for `/docs/ko/docs/dependencies/index.md` (#11114)

pull/11126/head
Kani Kim 1 year ago
committed by GitHub
parent
commit
b7e1551286
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 20
      docs/ko/docs/tutorial/dependencies/index.md

20
docs/ko/docs/tutorial/dependencies/index.md

@ -51,7 +51,7 @@
=== "Python 3.10+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
!!! ํŒ
!!! tip "ํŒ"
๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
```Python hl_lines="6-7"
@ -60,7 +60,7 @@
=== "Python 3.8+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
!!! ํŒ
!!! tip "ํŒ"
๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
```Python hl_lines="8-11"
@ -114,7 +114,7 @@
=== "Python 3.10+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
!!! ํŒ
!!! tip "ํŒ"
๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
```Python hl_lines="1"
@ -123,7 +123,7 @@
=== "Python 3.8+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
!!! ํŒ
!!! tip "ํŒ"
๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
```Python hl_lines="3"
@ -154,7 +154,7 @@
=== "Python 3.10+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
!!! ํŒ
!!! tip "ํŒ"
๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
```Python hl_lines="11 16"
@ -163,7 +163,7 @@
=== "Python 3.8+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
!!! ํŒ
!!! tip "ํŒ"
๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
```Python hl_lines="15 20"
@ -180,7 +180,7 @@
๊ทธ๋ฆฌ๊ณ  ๊ทธ ํ•จ์ˆ˜๋Š” *๊ฒฝ๋กœ ์ž‘๋™ ํ•จ์ˆ˜*๊ฐ€ ์ž‘๋™ํ•˜๋Š” ๊ฒƒ๊ณผ ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ๋ฐ›์Šต๋‹ˆ๋‹ค.
!!! ํŒ
!!! tip "ํŒ"
์—ฌ๋Ÿฌ๋ถ„์€ ๋‹ค์Œ ์žฅ์—์„œ ํ•จ์ˆ˜๋ฅผ ์ œ์™ธํ•˜๊ณ ์„œ, "๋‹ค๋ฅธ ๊ฒƒ๋“ค"์ด ์–ด๋–ป๊ฒŒ ์˜์กด์„ฑ์œผ๋กœ ์‚ฌ์šฉ๋˜๋Š”์ง€ ์•Œ๊ฒŒ ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.
์ƒˆ๋กœ์šด ์š”์ฒญ์ด ๋„์ฐฉํ•  ๋•Œ๋งˆ๋‹ค, **FastAPI**๋Š” ๋‹ค์Œ์„ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค:
@ -202,7 +202,7 @@ common_parameters --> read_users
์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ๊ณต์šฉ ์ฝ”๋“œ๋ฅผ ํ•œ๋ฒˆ๋งŒ ์ ์–ด๋„ ๋˜๋ฉฐ, **FastAPI**๋Š” *๊ฒฝ๋กœ ์ž‘๋™*์„ ์œ„ํ•ด ์ด์— ๋Œ€ํ•œ ํ˜ธ์ถœ์„ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
!!! ํ™•์ธ
!!! check "ํ™•์ธ"
ํŠน๋ณ„ํ•œ ํด๋ž˜์Šค๋ฅผ ๋งŒ๋“ค์ง€ ์•Š์•„๋„ ๋˜๋ฉฐ, ์ด๋Ÿฌํ•œ ๊ฒƒ ํ˜น์€ ๋น„์Šทํ•œ ์ข…๋ฅ˜๋ฅผ **FastAPI**์— "๋“ฑ๋ก"ํ•˜๊ธฐ ์œ„ํ•ด ์–ด๋–ค ๊ณณ์— ๋„˜๊ฒจ์ฃผ์ง€ ์•Š์•„๋„ ๋ฉ๋‹ˆ๋‹ค.
๋‹จ์ˆœํžˆ `Depends`์— ๋„˜๊ฒจ์ฃผ๊ธฐ๋งŒ ํ•˜๋ฉด ๋˜๋ฉฐ, **FastAPI**๋Š” ๋‚˜๋จธ์ง€๋ฅผ ์–ด์ฐŒํ• ์ง€ ์•Œ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
@ -237,7 +237,7 @@ commons: Annotated[dict, Depends(common_parameters)]
{!> ../../../docs_src/dependencies/tutorial001_02_an.py!}
```
!!! ํŒ
!!! tip "ํŒ"
์ด๋Š” ๊ทธ์ € ํ‘œ์ค€ ํŒŒ์ด์ฌ์ด๊ณ  "type alias"๋ผ๊ณ  ๋ถ€๋ฅด๋ฉฐ ์‚ฌ์‹ค **FastAPI**์— ๊ตญํ•œ๋˜๋Š” ๊ฒƒ์€ ์•„๋‹™๋‹ˆ๋‹ค.
ํ•˜์ง€๋งŒ, `Annotated`๋ฅผ ํฌํ•จํ•˜์—ฌ, **FastAPI**๊ฐ€ ํŒŒ์ด์ฌ ํ‘œ์ค€์„ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•˜๊ณ  ์žˆ๊ธฐ์—, ์ด๋ฅผ ์—ฌ๋Ÿฌ๋ถ„์˜ ์ฝ”๋“œ ํŠธ๋ฆญ์œผ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ˜Ž
@ -256,7 +256,7 @@ commons: Annotated[dict, Depends(common_parameters)]
์•„๋ฌด ๋ฌธ์ œ ์—†์Šต๋‹ˆ๋‹ค. **FastAPI**๋Š” ๋ฌด์—‡์„ ํ• ์ง€ ์•Œ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
!!! ์ฐธ๊ณ 
!!! note "์ฐธ๊ณ "
์ž˜ ๋ชจ๋ฅด์‹œ๊ฒ ๋‹ค๋ฉด, [Async: *"In a hurry?"*](../../async.md){.internal-link target=_blank} ๋ฌธ์„œ์—์„œ `async`์™€ `await`์— ๋Œ€ํ•ด ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
## OpenAPI์™€ ํ†ตํ•ฉ

Loadingโ€ฆ
Cancel
Save