]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
๐ŸŒ Update Korean translation for `/docs/ko/docs/dependencies/index.md` (#11114)
authorKani Kim <kkh5428@gmail.com>
Fri, 9 Feb 2024 10:34:13 +0000 (19:34 +0900)
committerGitHub <noreply@github.com>
Fri, 9 Feb 2024 10:34:13 +0000 (05:34 -0500)
docs/ko/docs/tutorial/dependencies/index.md

index d5d113860fe450f39d0577325cad5d164291519f..cde88eb6c9c7d29f663dd8e83aac53a2f814dbf3 100644 (file)
@@ -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"
 
 === "Python 3.10+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
 
-    !!! ํŒ
+    !!! tip "ํŒ"
         ๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
 
     ```Python hl_lines="1"
 
 === "Python 3.8+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
 
-    !!! ํŒ
+    !!! tip "ํŒ"
         ๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
 
     ```Python hl_lines="3"
 
 === "Python 3.10+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
 
-    !!! ํŒ
+    !!! tip "ํŒ"
         ๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
 
     ```Python hl_lines="11  16"
 
 === "Python 3.8+ Annotated๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ"
 
-    !!! ํŒ
+    !!! tip "ํŒ"
         ๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด `Annotated`๊ฐ€ ๋‹ฌ๋ฆฐ ๋ฒ„์ „์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
 
     ```Python hl_lines="15  20"
 
 ๊ทธ๋ฆฌ๊ณ  ๊ทธ ํ•จ์ˆ˜๋Š” *๊ฒฝ๋กœ ์ž‘๋™ ํ•จ์ˆ˜*๊ฐ€ ์ž‘๋™ํ•˜๋Š” ๊ฒƒ๊ณผ ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ๋ฐ›์Šต๋‹ˆ๋‹ค.
 
-!!! ํŒ
+!!! 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์™€ ํ†ตํ•ฉ