- Sort Score
- Result 10 results
- Languages All
Results 1511 - 1520 of 3,402 for rint (0.06 sec)
-
docs/em/docs/python-types.md
``` //// //// tab | 🐍 3️⃣.9️⃣ & 🔛 ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial007_py39.py!} ``` //// 👉 ⛓: * 🔢 `items_t` `tuple` ⏮️ 3️⃣ 🏬, `int`, ➕1️⃣ `int`, & `str`. * 🔢 `items_s` `set`, & 🔠 🚮 🏬 🆎 `bytes`. #### #️⃣ 🔬 `dict`, 👆 🚶♀️ 2️⃣ 🆎 🔢, 🎏 ❕. 🥇 🆎 🔢 🔑 `dict`. 🥈 🆎 🔢 💲 `dict`: //// tab | 🐍 3️⃣.6️⃣ & 🔛
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 4.3K bytes - Viewed (0) -
src/cmd/api/testdata/src/pkg/p3/p3.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p3 type ThirdBase struct{} func (tb *ThirdBase) GoodPlayer() (i, j, k int)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Nov 09 14:05:53 UTC 2022 - 310 bytes - Viewed (0) -
cmd/server-main.go
if err := globalConfigSys.Init(newObject); err != nil { if configRetriableErrors(err) { return fmt.Errorf("Unable to initialize config system: %w", err) } // Any other config errors we simply print a message and proceed forward. configLogIf(ctx, fmt.Errorf("Unable to initialize config, some features may be missing: %w", err)) } return nil } func setGlobalInternodeInterface(interfaceName string) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 21:50:11 UTC 2024 - 35.2K bytes - Viewed (2) -
docs_src/body_multiple_params/tutorial003_py310.py
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()): results = {"item_id": item_id, "item": item, "user": user, "importance": importance}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 504 bytes - Viewed (0) -
docs_src/query_param_models/tutorial002_pv1.py
from pydantic import BaseModel, Field from typing_extensions import Literal app = FastAPI() class FilterParams(BaseModel): class Config: extra = "forbid" limit: int = Field(100, gt=0, le=100) offset: int = Field(0, ge=0) order_by: Literal["created_at", "updated_at"] = "created_at" tags: List[str] = [] @app.get("/items/") async def read_items(filter_query: FilterParams = Query()):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 501 bytes - Viewed (0) -
docs_src/query_param_models/tutorial002_an_py310.py
from fastapi import FastAPI, Query from pydantic import BaseModel, Field app = FastAPI() class FilterParams(BaseModel): model_config = {"extra": "forbid"} limit: int = Field(100, gt=0, le=100) offset: int = Field(0, ge=0) order_by: Literal["created_at", "updated_at"] = "created_at" tags: list[str] = [] @app.get("/items/") async def read_items(filter_query: Annotated[FilterParams, Query()]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 483 bytes - Viewed (0) -
docs_src/dependencies/tutorial001.py
from typing import Union from fastapi import Depends, FastAPI app = FastAPI() async def common_parameters( q: Union[str, None] = None, skip: int = 0, limit: int = 100 ): return {"q": q, "skip": skip, "limit": limit} @app.get("/items/") async def read_items(commons: dict = Depends(common_parameters)): return commons @app.get("/users/") async def read_users(commons: dict = Depends(common_parameters)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 442 bytes - Viewed (0) -
docs_src/dependencies/tutorial001_an_py39.py
from typing import Annotated, Union from fastapi import Depends, FastAPI app = FastAPI() async def common_parameters( q: Union[str, None] = None, skip: int = 0, limit: int = 100 ): return {"q": q, "skip": skip, "limit": limit} @app.get("/items/") async def read_items(commons: Annotated[dict, Depends(common_parameters)]): return commons @app.get("/users/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 473 bytes - Viewed (0) -
docs/ru/docs/tutorial/body-nested-models.md
--- Другой полезный случай - когда вы хотите чтобы ключи были другого типа данных, например, `int`. Именно это мы сейчас и увидим здесь. В этом случае вы принимаете `dict`, пока у него есть ключи типа `int` со значениями типа `float`: //// tab | Python 3.9+ ```Python hl_lines="7" {!> ../../docs_src/body_nested_models/tutorial009_py39.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 14.8K bytes - Viewed (0)