- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 1,705 for nonce (0.07 seconds)
-
fastapi/security/http.py
), ] class HTTPBase(SecurityBase): model: HTTPBaseModel def __init__( self, *, scheme: str, scheme_name: str | None = None, description: str | None = None, auto_error: bool = True, ): self.model = HTTPBaseModel(scheme=scheme, description=description) self.scheme_name = scheme_name or self.__class__.__name__Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 16 10:16:48 GMT 2026 - 13.1K bytes - Click Count (0) -
tests/test_serialize_response_model.py
from pydantic import BaseModel, Field from starlette.testclient import TestClient app = FastAPI() class Item(BaseModel): name: str = Field(alias="aliased_name") price: float | None = None owner_ids: list[int] | None = None @app.get("/items/valid", response_model=Item) def get_valid(): return Item(aliased_name="valid", price=1.0) @app.get("/items/coerce", response_model=Item) def get_coerce():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 4.1K bytes - Click Count (0) -
docs/tr/docs/advanced/advanced-python-types.md
```Python say_hi(name=None) # Bu çalışır, None geçerlidir 🎉 ``` İyi haber şu ki, çoğu durumda tip birliklerini (union) tanımlamak için doğrudan `|` kullanabilirsiniz: ```python def say_hi(name: str | None): print(f"Hey {name}!") ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 12:41:38 GMT 2026 - 2.1K bytes - Click Count (0) -
tests/main.py
@app.get("/query/optional") def get_query_optional(query=None): if query is None: return "foo bar" return f"foo bar {query}" @app.get("/query/int") def get_query_type(query: int): return f"foo bar {query}" @app.get("/query/int/optional") def get_query_type_optional(query: int | None = None): if query is None: return "foo bar" return f"foo bar {query}"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 4.5K bytes - Click Count (0) -
tests/test_request_params/test_form/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, Form()] = None, ): return {"p": p} class FormModelOptionalListStr(BaseModel): p: list[str] | None = None @app.post("/model-optional-list-str", operation_id="model_optional_list_str")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.9K bytes - Click Count (0) -
fastapi/openapi/models.py
type: SchemaType | list[SchemaType] | None = None enum: list[Any] | None = None const: Any | None = None multipleOf: float | None = Field(default=None, gt=0) maximum: float | None = None exclusiveMaximum: float | None = None minimum: float | None = None exclusiveMinimum: float | None = None maxLength: int | None = Field(default=None, ge=0) minLength: int | None = Field(default=None, ge=0)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 14.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
internal var eventListenerFactory: EventListener.Factory = EventListener.NONE.asFactory() internal var retryOnConnectionFailure = true internal var fastFallback = true internal var authenticator: Authenticator = Authenticator.NONE internal var followRedirects = true internal var followSslRedirects = true
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 51.5K bytes - Click Count (0) -
docs/pt/docs/advanced/advanced-python-types.md
O parâmetro `name` continua obrigatório (não é opcional) porque não tem valor padrão. Ainda assim, `name` aceita `None` como valor: ```Python say_hi(name=None) # Isso funciona, None é válido 🎉 ``` A boa notícia é que, na maioria dos casos, você poderá simplesmente usar `|` para definir uniões de tipos: ```python def say_hi(name: str | None): print(f"Hey {name}!") ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:48:53 GMT 2026 - 2.1K bytes - Click Count (0) -
tests/test_invalid_sequence_param.py
pass # pragma: no cover...
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 1.5K bytes - Click Count (0) -
docs_src/header_param_models/tutorial001_py310.py
from fastapi import FastAPI, Header from pydantic import BaseModel app = FastAPI() class CommonHeaders(BaseModel): host: str save_data: bool if_modified_since: str | None = None traceparent: str | None = None x_tag: list[str] = [] @app.get("/items/") async def read_items(headers: CommonHeaders = Header()):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 352 bytes - Click Count (0)