Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,048 for strs (0.01 sec)

  1. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.native.js

     * @return {boolean} Whether the given string is null or is the empty string.
     * @public
     */
    Platform.stringIsNullOrEmpty = function(str) {
      return !str;
    };
    
    
    /**
     * @param {?string} str
     * @return {string} Original str, if it is non-null. Otherwise empty string.
     */
    Platform.nullToEmpty = function(str) {
      return str || "";
    };
    
    
    /**
     * @param {?string} str
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Mar 25 14:03:03 UTC 2020
    - 527 bytes
    - Viewed (0)
  2. tests/benchmarks/test_general_performance.py

        metadata: dict[str, Any]
    
    
    class LargeOut(BaseModel):
        items: list[dict[str, Any]]
        metadata: dict[str, Any]
    
    
    app = FastAPI()
    
    
    @app.post("/sync/validated", response_model=ItemOut)
    def sync_validated(item: ItemIn, dep: Annotated[int, Depends(dep_b)]):
        return ItemOut(name=item.name, value=item.value, dep=dep)
    
    
    @app.get("/sync/dict-no-response-model")
    def sync_dict_no_response_model():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 20:40:26 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. tests/test_request_params/test_header/test_optional_list.py

    @pytest.mark.parametrize(
        "path",
        ["/optional-list-str", "/model-optional-list-str"],
    )
    def test_optional_list_str_missing(path: str):
        client = TestClient(app)
        response = client.get(path)
        assert response.status_code == 200, response.text
        assert response.json() == {"p": None}
    
    
    @pytest.mark.parametrize(
        "path",
        ["/optional-list-str", "/model-optional-list-str"],
    )
    def test_optional_list_str(path: str):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/metadata.md

    | 参数 | 类型 | 描述 |
    |------------|------|-------------|
    | `title` | `str` | API 的标题。 |
    | `summary` | `str` | API 的简短摘要。 <small>自 OpenAPI 3.1.0、FastAPI 0.99.0 起可用。.</small> |
    | `description` | `str` | API 的简短描述。可以使用Markdown。 |
    | `version` | `string` | API 的版本。这是您自己的应用程序的版本,而不是 OpenAPI 的版本。例如 `2.5.0` 。 |
    | `terms_of_service` | `str` | API 服务条款的 URL。如果提供,则必须是 URL。 |
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. tests/test_request_params/test_query/test_list.py

    # Without aliases
    
    
    @app.get("/required-list-str")
    async def read_required_list_str(p: Annotated[list[str], Query()]):
        return {"p": p}
    
    
    class QueryModelRequiredListStr(BaseModel):
        p: list[str]
    
    
    @app.get("/model-required-list-str")
    def read_model_required_list_str(p: Annotated[QueryModelRequiredListStr, Query()]):
        return {"p": p.p}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  6. scripts/people.py

    
    class DiscussionExpertsResults(BaseModel):
        commenters: Counter[str]
        last_month_commenters: Counter[str]
        three_months_commenters: Counter[str]
        six_months_commenters: Counter[str]
        one_year_commenters: Counter[str]
        authors: dict[str, Author]
    
    
    def get_discussion_nodes(settings: Settings) -> list[DiscussionsNode]:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. fastapi/params.py

            embed: Union[bool, None] = None,
            media_type: str = "application/json",
            alias: Optional[str] = None,
            alias_priority: Union[int, None] = _Unset,
            validation_alias: Union[str, AliasPath, AliasChoices, None] = None,
            serialization_alias: Union[str, None] = None,
            title: Optional[str] = None,
            description: Optional[str] = None,
            gt: Optional[float] = None,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/extra-data-types.md

        * 요청과 응답에서 `2008-09-15T15:53:00+05:00`와 같은 ISO 8601 형식의 `str`로 표현됩니다.
    * `datetime.date`:
        * 파이썬의 `datetime.date`.
        * 요청과 응답에서 `2008-09-15`와 같은 ISO 8601 형식의 `str`로 표현됩니다.
    * `datetime.time`:
        * 파이썬의 `datetime.time`.
        * 요청과 응답에서 `14:23:55.003`와 같은 ISO 8601 형식의 `str`로 표현됩니다.
    * `datetime.timedelta`:
        * 파이썬의 `datetime.timedelta`.
        * 요청과 응답에서 전체 초(seconds)의 `float`로 표현됩니다.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. docs_src/extra_models/tutorial001_py310.py

    app = FastAPI()
    
    
    class UserIn(BaseModel):
        username: str
        password: str
        email: EmailStr
        full_name: str | None = None
    
    
    class UserOut(BaseModel):
        username: str
        email: EmailStr
        full_name: str | None = None
    
    
    class UserInDB(BaseModel):
        username: str
        hashed_password: str
        email: EmailStr
        full_name: str | None = None
    
    
    def fake_password_hasher(raw_password: str):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 905 bytes
    - Viewed (0)
  10. docs_src/extra_models/tutorial001_py39.py

    app = FastAPI()
    
    
    class UserIn(BaseModel):
        username: str
        password: str
        email: EmailStr
        full_name: Union[str, None] = None
    
    
    class UserOut(BaseModel):
        username: str
        email: EmailStr
        full_name: Union[str, None] = None
    
    
    class UserInDB(BaseModel):
        username: str
        hashed_password: str
        email: EmailStr
        full_name: Union[str, None] = None
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 949 bytes
    - Viewed (0)
Back to top