- Sort Score
- Result 10 results
- Languages All
Results 801 - 810 of 1,080 for Str (0.01 sec)
-
docs/em/docs/tutorial/body-multiple-params.md
## ๐ ๐ช = & ๐ข โ๏ธ, ๐ ๐ช ๐ฃ ๐ ๐ข ๐ข ๐โ ๐ ๐ช, ๐ ๐ ๐ช ๐ข. , ๐ข, โญ ๐ฒ ๐ฌ ๐ข ๐ข, ๐ ๐ซ โ๏ธ ๐ฏ ๐ฎ `Query`, ๐ ๐ช: ```Python q: Union[str, None] = None ``` โ๏ธ ๐ 3๏ธโฃ.1๏ธโฃ0๏ธโฃ & ๐: ```Python q: str | None = None ``` ๐ผ: //// tab | ๐ 3๏ธโฃ.6๏ธโฃ & ๐ ```Python hl_lines="27" {!> ../../docs_src/body_multiple_params/tutorial004.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-operation-configuration.md
/// note | "๊ธฐ์ ์ ์ธ๋ถ์ฌํญ" ๋ค์๊ณผ ๊ฐ์ด ์ํฌํธํ์ ๋ ์ข์ต๋๋ค. `from starlette import status`. **FastAPI**๋ ๊ฐ๋ฐ์ ์ฌ๋ฌ๋ถ์ ํธ์๋ฅผ ์ํด์ `starlette.status`์ ๋์ผํ `fastapi.status`๋ฅผ ์ ๊ณตํฉ๋๋ค. ํ์ง๋ง Starlette์์ ์ง์ ์จ ๊ฒ์ ๋๋ค. /// ## ํ๊ทธ (๋ณดํต ๋จ์ผ `str`์ธ) `str`๋ก ๊ตฌ์ฑ๋ `list`์ ํจ๊ป ๋งค๊ฐ๋ณ์ `tags`๋ฅผ ์ ๋ฌํ์ฌ, `๊ฒฝ๋ก ์๋`์ ํ๊ทธ๋ฅผ ์ถ๊ฐํ ์ ์์ต๋๋ค: ```Python hl_lines="17 22 27" {!../../docs_src/path_operation_configuration/tutorial002.py!} ``` ์ ๋ฌ๋ ํ๊ทธ๋ค์ OpenAPI์ ์คํค๋ง์ ์ถ๊ฐ๋๋ฉฐ, ์๋ ๋ฌธ์ ์ธํฐํ์ด์ค์์ ์ฌ์ฉ๋ฉ๋๋ค:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.1K bytes - Viewed (0) -
tests/test_computed_fields.py
return Rectangle(width=3, length=4) client = TestClient(app) return client @pytest.mark.parametrize("path", ["/", "/responses"]) @needs_pydanticv2 def test_get(client: TestClient, path: str): response = client.get(path) assert response.status_code == 200, response.text assert response.json() == {"width": 3, "length": 4, "area": 12} @needs_pydanticv2
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 3K bytes - Viewed (0) -
guava/src/com/google/common/io/LittleEndianDataOutputStream.java
@Override public void writeShort(int v) throws IOException { out.write(0xFF & v); out.write(0xFF & (v >> 8)); } @Override public void writeUTF(String str) throws IOException { ((DataOutputStream) out).writeUTF(str); } // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 26 12:34:49 UTC 2024 - 5.2K bytes - Viewed (0) -
docs/em/docs/tutorial/body-updates.md
โน ๐ฌ ๐ ๐ช โ๏ธ <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT" class="external-link" target="_blank">๐บ๐ธ๐ `PUT`</a> ๐ ๏ธ. ๐ ๐ช โ๏ธ `jsonable_encoder` ๐ ๐ข ๐ฝ ๐ ๐ ๐ช ๐ช ๐ป (โ โฎ๏ธ โ ๐ฝ). ๐ผ, ๐ญ `datetime` `str`. //// tab | ๐ 3๏ธโฃ.6๏ธโฃ & ๐ ```Python hl_lines="30-35" {!> ../../docs_src/body_updates/tutorial001.py!} ``` //// //// tab | ๐ 3๏ธโฃ.9๏ธโฃ & ๐ ```Python hl_lines="30-35"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.5K bytes - Viewed (0) -
docs_src/python_types/tutorial009c.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 89 bytes - Viewed (0) -
tests/test_serialize_response.py
from typing import List, Optional from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: Optional[float] = None owner_ids: Optional[List[int]] = None @app.get("/items/valid", response_model=Item) def get_valid(): return {"name": "valid", "price": 1.0} @app.get("/items/coerce", response_model=Item)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 03 12:29:07 UTC 2020 - 1.4K bytes - Viewed (0) -
docs/em/docs/index.md
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float is_offer: Union[bool, None] = None @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 17.1K bytes - Viewed (0) -
docs/em/docs/features.md
๐ โ ๐ฉ ๐ โฎ๏ธ ๐: ```Python from datetime import date from pydantic import BaseModel # Declare a variable as a str # and get editor support inside the function def main(user_id: str): return user_id # A Pydantic model class User(BaseModel): id: int name: str joined: date ``` ๐ ๐ช โคด๏ธ โ๏ธ ๐: ```Python my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 8K bytes - Viewed (0) -
docs_src/python_types/tutorial008_py39.py
def process_items(prices: dict[str, float]): for item_name, item_price in prices.items(): print(item_name)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Jan 16 14:44:08 UTC 2022 - 145 bytes - Viewed (0)