- Sort Score
- Result 10 results
- Languages All
Results 811 - 820 of 1,086 for str (0.01 sec)
-
docs_src/python_types/tutorial008_py39.py
def process_items(prices: dict[str, float]): for item_name, item_price in prices.items(): print(item_name)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Jan 16 14:44:08 UTC 2022 - 145 bytes - Viewed (0) -
docs_src/python_types/tutorial012.py
from typing import Optional from pydantic import BaseModel class User(BaseModel): name: str
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 122 bytes - Viewed (0) -
tests/test_union_body.py
from dirty_equals import IsDict from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: Optional[str] = None class OtherItem(BaseModel): price: int @app.post("/items/") def save_union_body(item: Union[OtherItem, Item]): return {"item": item} client = TestClient(app)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 4.6K bytes - Viewed (0) -
docs_src/python_types/tutorial007.py
from typing import Set, Tuple def process_items(items_t: Tuple[int, int, str], items_s: Set[bytes]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Apr 11 17:20:32 UTC 2020 - 131 bytes - Viewed (0) -
docs/em/docs/tutorial/body-updates.md
âš đŦ đ đĒ âī¸ <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT" class="external-link" target="_blank">đēđ¸đ `PUT`</a> đ ī¸. đ đĒ âī¸ `jsonable_encoder` đ đĸ đŊ đ đ đĒ đĒ đģ (â âŽī¸ â đŊ). đŧ, đ `datetime` `str`. //// tab | đ 3ī¸âŖ.6ī¸âŖ & đ ```Python hl_lines="30-35" {!> ../../docs_src/body_updates/tutorial001.py!} ``` //// //// tab | đ 3ī¸âŖ.9ī¸âŖ & đ ```Python hl_lines="30-35"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.5K bytes - Viewed (0) -
guava/src/com/google/common/io/LittleEndianDataOutputStream.java
@Override public void writeShort(int v) throws IOException { out.write(0xFF & v); out.write(0xFF & (v >> 8)); } @Override public void writeUTF(String str) throws IOException { ((DataOutputStream) out).writeUTF(str); } // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 26 12:34:49 UTC 2024 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
public final void writeUTF ( String str ) throws SmbException { int len = str.length(); int ch, size = 0; byte[] dst; for ( int i = 0; i < len; i++ ) { ch = str.charAt(i); size += ch > 0x07F ? ( ch > 0x7FF ? 3 : 2 ) : 1; } dst = new byte[size]; writeShort(size); Encdec.enc_utf8(str, dst, 0, size); write(dst, 0, size);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Wed Jan 08 12:01:33 UTC 2020 - 18.5K bytes - Viewed (0) -
docs_src/python_types/tutorial009b.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 164 bytes - Viewed (0) -
docs/em/docs/advanced/security/oauth2-scopes.md
đ, đĨ âš Pydantic đˇ `TokenData` âŽī¸ đ đ `scopes`. â đ âŽī¸ Pydantic đĨ đĒ â đ đ đĨ âī¸, đŧ, âĢī¸â `list` `str` âŽī¸ â & `str` âŽī¸ `username`. âŠī¸, đŧ, `dict`, âī¸ đŗ đ, âĢī¸ đĒ đ đ¸ â âĒ, â âĢī¸ đââ â . đĨ â đ đĨ âī¸ đŠâđģ âŽī¸ đ đ, & đĨ đĢ, đĨ đ¤ đ đ â đĨ â â. ```Python hl_lines="46 116-127"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11K bytes - Viewed (0) -
docs/em/docs/tutorial/body-multiple-params.md
## đ đĒ = & đĸ âī¸, đ đĒ đŖ đ đĸ đĸ đâ đ đĒ, đ đ đĒ đĸ. , đĸ, â đ˛ đŦ đĸ đĸ, đ đĢ âī¸ đ¯ đŽ `Query`, đ đĒ: ```Python q: Union[str, None] = None ``` âī¸ đ 3ī¸âŖ.1ī¸âŖ0ī¸âŖ & đ: ```Python q: str | None = None ``` đŧ: //// tab | đ 3ī¸âŖ.6ī¸âŖ & đ ```Python hl_lines="27" {!> ../../docs_src/body_multiple_params/tutorial004.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5K bytes - Viewed (0)