- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 2,076 for none (0.03 seconds)
-
tests/test_request_params/test_file/test_optional_list.py
@app.post("/optional-list-bytes") async def read_optional_list_bytes(p: Annotated[list[bytes] | None, File()] = None): return {"file_size": [len(file) for file in p] if p else None} @app.post("/optional-list-uploadfile") async def read_optional_list_uploadfile( p: Annotated[list[UploadFile] | None, File()] = None, ): return {"file_size": [file.size for file in p] if p else None} @pytest.mark.parametrize( "path", [
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 10.8K bytes - Click Count (0) -
scripts/contributors.py
class ReviewNode(BaseModel): author: Author | None = None state: str class Reviews(BaseModel): nodes: list[ReviewNode] class PullRequestNode(BaseModel): number: int labels: Labels author: Author | None = None title: str createdAt: datetime lastEditedAt: datetime | None = None updatedAt: datetime | None = None state: str reviews: Reviews
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Dec 16 12:34:01 GMT 2025 - 8.6K bytes - Click Count (0) -
fastapi/security/oauth2.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Mar 24 16:32:10 GMT 2026 - 23.6K bytes - Click Count (0) -
tests/test_request_params/test_body/test_optional_list.py
# Without aliases @app.post("/optional-list-str", operation_id="optional_list_str") async def read_optional_list_str( p: Annotated[list[str] | None, Body(embed=True)] = None, ): return {"p": p} class BodyModelOptionalListStr(BaseModel): p: list[str] | None = None @app.post("/model-optional-list-str", operation_id="model_optional_list_str") async def read_model_optional_list_str(p: BodyModelOptionalListStr):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 12.6K bytes - Click Count (0) -
scripts/translate.py
print("LLM translatable languages:", translatable_langs) return translatable_langs @app.command() def llm_translatable_json( language: Annotated[str | None, typer.Option(envvar="LANGUAGE")] = None, ) -> None: translatable_langs = get_llm_translatable() if language: if language in translatable_langs: print(json.dumps([language])) return else:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:37:41 GMT 2026 - 15.8K bytes - Click Count (0) -
docs/en/docs/tutorial/query-params-str-validations.md
We had this type annotation: ```Python q: str | None = None ``` What we will do is wrap that with `Annotated`, so it becomes: ```Python q: Annotated[str | None] = None ``` Both of those versions mean the same thing, `q` is a parameter that can be a `str` or `None`, and by default, it is `None`. Now let's jump to the fun stuff. 🎉
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 16.3K bytes - Click Count (0) -
docs_src/body_multiple_params/tutorial004_py310.py
class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class User(BaseModel): username: str full_name: str | None = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Item, user: User, importance: int = Body(gt=0), q: str | None = None, ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 10 18:49:18 GMT 2023 - 603 bytes - Click Count (0) -
tests/test_request_params/test_header/test_optional_str.py
# Without aliases @app.get("/optional-str") async def read_optional_str(p: Annotated[str | None, Header()] = None): return {"p": p} class HeaderModelOptionalStr(BaseModel): p: str | None = None @app.get("/model-optional-str") async def read_model_optional_str(p: Annotated[HeaderModelOptionalStr, Header()]): return {"p": p.p}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 8.5K bytes - Click Count (0) -
docs/metrics/prometheus/grafana/minio-dashboard.json
"gridPos": { "h": 6, "w": 3, "x": 0, "y": 0 }, "id": 1, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false },
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Aug 04 01:46:49 GMT 2025 - 93.1K bytes - Click Count (0) -
fastapi/dependencies/models.py
name: str | None = None call: Callable[..., Any] | None = None request_param_name: str | None = None websocket_param_name: str | None = None http_connection_param_name: str | None = None response_param_name: str | None = None background_tasks_param_name: str | None = None security_scopes_param_name: str | None = None own_oauth_scopes: list[str] | None = NoneCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:41:21 GMT 2026 - 7.1K bytes - Click Count (0)