- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 449 for kwargs (0.04 sec)
-
fastapi/params.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 18:06:20 UTC 2024 - 27.5K bytes - Viewed (0) -
fastapi/utils.py
annotation=type_, default=default, alias=alias ) else: field_info = field_info or FieldInfo() kwargs = {"name": name, "field_info": field_info} if PYDANTIC_V2: kwargs.update({"mode": mode}) else: kwargs.update( { "type_": type_, "class_validators": class_validators, "default": default,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 31 23:46:03 UTC 2024 - 7.8K bytes - Viewed (0) -
fastapi/background.py
), ], *args: P.args, **kwargs: P.kwargs, ) -> None: """ Add a function to be called in the background after the response is sent. Read more about it in the [FastAPI docs for Background Tasks](https://fastapi.tiangolo.com/tutorial/background-tasks/). """
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Apr 02 02:48:51 UTC 2024 - 1.7K bytes - Viewed (0) -
tests/test_ws_router.py
class CustomError(Exception): pass @router.websocket("/custom_error/") async def router_ws_custom_error(websocket: WebSocket): raise CustomError() def make_app(app=None, **kwargs): app = app or FastAPI(**kwargs) app.include_router(router) app.include_router(prefix_router, prefix="/prefix") app.include_router(native_prefix_route) return app app = make_app(app)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Jun 11 19:08:14 UTC 2023 - 7.5K bytes - Viewed (0) -
fastapi/_compat.py
def _model_rebuild(model: Type[BaseModel]) -> None: model.model_rebuild() def _model_dump( model: BaseModel, mode: Literal["json", "python"] = "json", **kwargs: Any ) -> Any: return model.model_dump(mode=mode, **kwargs) def _get_model_config(model: BaseModel) -> Any: return model.model_config def get_schema_from_model_field( *, field: ModelField,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:36:32 UTC 2024 - 23.4K bytes - Viewed (0) -
scripts/mkdocs_hooks.py
langs = [file.stem for file in material_langs_path.glob("*.html")] return langs class EnFile(File): pass def on_config(config: MkDocsConfig, **kwargs: Any) -> MkDocsConfig: available_langs = get_mkdocs_material_langs() dir_path = Path(config.docs_dir) lang = dir_path.parent.name if lang in available_langs: config.theme["language"] = lang
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 17 21:20:31 UTC 2024 - 5.2K bytes - Viewed (0) -
fastapi/param_functions.py
Any, Doc( """ Include extra fields used by the JSON Schema. """ ), deprecated( """ The `extra` kwargs is deprecated. Use `json_schema_extra` instead. """ ), ], ) -> Any: """ Declare a path parameter for a *path operation*. Read more about it in the
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 23 18:30:18 UTC 2024 - 62.5K bytes - Viewed (0) -
docs/em/docs/tutorial/path-params-numeric-validations.md
๐ถโโ๏ธ `*`, ๐ฅ ๐ข ๐ข. ๐ ๐ ๐ซ ๐ณ โฎ๏ธ ๐ `*`, โ๏ธ โซ๏ธ ๐ ๐ญ ๐ ๐ ๐ ๐ข ๐ ๐ค ๐จ๐ป โ (๐-๐ฒ ๐ซ), ๐ญ <abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. ๐ฅ ๐ซ ๐ซ โ๏ธ ๐ข ๐ฒ. ```Python hl_lines="7" {!../../docs_src/path_params_numeric_validations/tutorial003.py!} ``` ## ๐ข ๐ฌ: ๐ ๐ โ๏ธ ๐ โฎ๏ธ `Query` & `Path` (& ๐ ๐ ๐ ๐ โช) ๐ ๐ช ๐ฃ ๐ข โ.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-params-numeric-validations.md
O Python nรฃo vai fazer nada com esse `*`, mas ele vai saber que a partir dali os parรขmetros seguintes deverรฃo ser chamados argumentos nomeados (pares chave-valor), tambรฉm conhecidos como <abbr title="Do inglรชs: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. Mesmo que eles nรฃo possuam um valor padrรฃo. ```Python hl_lines="7" {!../../docs_src/path_params_numeric_validations/tutorial003.py!} ``` ## Validaรงรตes numรฉricas: maior que ou igual
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.6K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params-numeric-validations.md
Python won't do anything with that `*`, but it will know that all the following parameters should be called as keyword arguments (key-value pairs), also known as <abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. Even if they don't have a default value. ```Python hl_lines="7" {!../../docs_src/path_params_numeric_validations/tutorial003.py!} ``` ### Better with `Annotated`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.8K bytes - Viewed (0)