- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 110 for purple (0.31 sec)
-
tests/test_invalid_path_param.py
from typing import Dict, List, Tuple import pytest from fastapi import FastAPI from pydantic import BaseModel def test_invalid_sequence(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/{id}") def read_items(id: List[Item]): pass # pragma: no cover def test_invalid_tuple():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jun 03 17:59:40 GMT 2019 - 1.7K bytes - Viewed (0) -
tests/test_invalid_sequence_param.py
import pytest from fastapi import FastAPI, Query from pydantic import BaseModel def test_invalid_sequence(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/") def read_items(q: List[Item] = Query(default=None)): pass # pragma: no cover def test_invalid_tuple():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 1.2K bytes - Viewed (0) -
tests/test_dependency_security_overrides.py
from typing import List, Tuple from fastapi import Depends, FastAPI, Security from fastapi.security import SecurityScopes from fastapi.testclient import TestClient app = FastAPI() def get_user(required_scopes: SecurityScopes): return "john", required_scopes.scopes def get_user_override(required_scopes: SecurityScopes): return "alice", required_scopes.scopes def get_data(): return [1, 2, 3]
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jun 14 15:54:46 GMT 2020 - 1.4K bytes - Viewed (0) -
docs/en/mkdocs.yml
edit_uri: '' plugins: search: null macros: include_yaml: - external_links: ../en/data/external_links.yml - github_sponsors: ../en/data/github_sponsors.yml - people: ../en/data/people.yml - sponsors_badge: ../en/data/sponsors_badge.yml - sponsors: ../en/data/sponsors.yml redirects: redirect_maps: deployment/deta.md: deployment/cloud.md
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/zh/docs/help-fastapi.md
聊天室仅供闲聊。 ### 别在聊天室里提问 注意,聊天室更倾向于“闲聊”,经常有人会提出一些笼统得让人难以回答的问题,所以在这里提问一般没人回答。 GitHub Issues 里提供了模板,指引您提出正确的问题,有利于获得优质的回答,甚至可能解决您还没有想到的问题。而且就算答疑解惑要耗费不少时间,我还是会尽量在 GitHub 里回答问题。但在聊天室里,我就没功夫这么做了。😅
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.4K bytes - Viewed (0) -
docs/em/docs/python-types.md
#### 🔢 & ⚒ 👆 🔜 🎏 📣 `tuple`Ⓜ & `set`Ⓜ: === "🐍 3️⃣.6️⃣ & 🔛" ```Python hl_lines="1 4" {!> ../../../docs_src/python_types/tutorial007.py!} ``` === "🐍 3️⃣.9️⃣ & 🔛" ```Python hl_lines="1" {!> ../../../docs_src/python_types/tutorial007_py39.py!} ``` 👉 ⛓: * 🔢 `items_t` `tuple` ⏮️ 3️⃣ 🏬, `int`, ➕1️⃣ `int`, & `str`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 13.6K bytes - Viewed (0) -
docs/en/docs/history-design-future.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/em/docs/help-fastapi.md
📚 💼 👆 5️⃣📆 ⏪ 💭 ❔ 📚 ❔. 👶 🚥 👆 🤝 📚 👫👫 ⏮️ 👫 ❔, 👆 🔜 ▶️️ 🛂 [FastAPI 🕴](fastapi-people.md#_2){.internal-link target=_blank}. 👶 💭, 🏆 ⚠ ☝: 🔄 😇. 👫👫 👟 ⏮️ 👫 😩 & 📚 💼 🚫 💭 🏆 🌌, ✋️ 🔄 🏆 👆 💪 😇. 👶 💭 **FastAPI** 👪 😇 & 👍. 🎏 🕰, 🚫 🚫 🎭 ⚖️ 😛 🎭 ⤵ 🎏. 👥 ✔️ ✊ 💅 🔠 🎏. ---
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.7K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
``` As in this case (without using `Annotated`) we have to replace the default value `None` in the function with `Query()`, we now need to set the default value with the parameter `Query(default=None)`, it serves the same purpose of defining that default value (at least for FastAPI). So: ```Python q: Union[str, None] = Query(default=None) ``` ...makes the parameter optional, with a default value of `None`, the same as:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 25.7K bytes - Viewed (0) -
docs/ko/docs/tutorial/body-nested-models.md
### typing의 `List` 임포트 먼저, 파이썬 표준 `typing` 모듈에서 `List`를 임포트합니다: ```Python hl_lines="1" {!../../../docs_src/body_nested_models/tutorial002.py!} ``` ### 타입 매개변수로 `List` 선언 `list`, `dict`, `tuple`과 같은 타입 매개변수(내부 타입)를 갖는 타입을 선언하려면: * `typing` 모듈에서 임포트 * 대괄호를 사용하여 "타입 매개변수"로 내부 타입 전달: `[` 및 `]` ```Python from typing import List my_list: List[str] ``` 이 모든 것은 타입 선언을 위한 표준 파이썬 문법입니다.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.6K bytes - Viewed (0)