Search Options

Results per page
Sort
Preferred Languages
Advance

Results 841 - 850 of 974 for strl (0.02 sec)

  1. docs/fr/docs/tutorial/body.md

    * Si le paramètre est déclaré comme ayant pour type un **modèle Pydantic**, il sera interprété comme faisant partie du **corps** de la requête.
    
    /// note
    
    **FastAPI** saura que la valeur de `q` n'est pas requise grâce à la valeur par défaut `=None`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 17:34:41 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/path-params-numeric-validations.md

    ```
    
    ////
    
    /// note
    
    路径参数总是必需的,因为它必须是路径的一部分。
    
    所以,你应该在声明时使用 `...` 将其标记为必需参数。
    
    然而,即使你使用 `None` 声明路径参数或设置一个其他默认值也不会有任何影响,它依然会是必需参数。
    
    ///
    
    ## 按需对参数排序
    
    假设你想要声明一个必需的 `str` 类型查询参数 `q`。
    
    而且你不需要为该参数声明任何其他内容,所以实际上你并不需要使用 `Query`。
    
    但是你仍然需要使用 `Path` 来声明路径参数 `item_id`。
    
    如果你将带有「默认值」的参数放在没有「默认值」的参数之前,Python 将会报错。
    
    但是你可以对其重新排序,并将不带默认值的值(查询参数 `q`)放到最前面。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/index.md

    예제를 실행하려면 코드를 `main.py` 파일에 복사하고 다음을 사용하여 `uvicorn`을 시작합니다:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    <span style="color: green;">INFO</span>:     Started reloader process [28720]
    <span style="color: green;">INFO</span>:     Started server process [28722]
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Oct 04 10:57:17 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. tests/test_dependency_duplicates.py

    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    client = TestClient(app)
    
    
    class Item(BaseModel):
        data: str
    
    
    def duplicate_dependency(item: Item):
        return item
    
    
    def dependency(item2: Item):
        return item2
    
    
    def sub_duplicate_dependency(
        item: Item, sub_item: Item = Depends(duplicate_dependency)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. docs/uk/docs/tutorial/body.md

    * Якщо параметр має **сингулярний тип** (наприклад, `int`, `float`, `str`, `bool` тощо), він буде інтерпретуватися як параметр **запиту**.
    * Якщо параметр оголошується як тип **Pydantic моделі**, він інтерпретується як **тіло** запиту.
    
    /// note
    
    FastAPI буде знати, що значення "q" не є обов'язковим через значення за замовчуванням "= None".
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. docs/fr/docs/tutorial/body-multiple-params.md

    ```Python
    q: Union[str, None] = None
    ```
    
    Ou bien, en Python 3.10 et supérieur :
    
    ```Python
    q: str | None = None
    ```
    
    Par exemple :
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="27"
    {!> ../../docs_src/body_multiple_params/tutorial004_an_py310.py!}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. tests/sql_builder_test.go

    	newDB.Joins("inner join rgs on rgs.id = user.id")
    
    	stmt := newDB.First(&result).Statement
    	str := stmt.SQL.String()
    
    	if !strings.Contains(str, "rgs.id = user.id") {
    		t.Errorf("The second join condition is over written instead of combining")
    	}
    
    	if !strings.Contains(str, "`users`.`company_id` = `companies`.`id`") && !strings.Contains(str, "\"users\".\"company_id\" = \"companies\".\"id\"") {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

      }
    
      public void testFlatteningToImmutableListMultimap() {
        Collector<String, ?, ImmutableListMultimap<Character, Character>> collector =
            flatteningToImmutableListMultimap(
                str -> str.charAt(0), str -> Chars.asList(str.substring(1).toCharArray()).stream());
        BiPredicate<Multimap<?, ?>, Multimap<?, ?>> equivalence =
            Equivalence.equals()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md

    ## Classes como dependências
    
    Você deve ter percebido que para criar um instância de uma classe em Python, a mesma sintaxe é utilizada.
    
    Por exemplo:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    Nesse caso,  `fluffy` é uma instância da classe `Cat`.
    
    E para criar `fluffy`, você está "chamando" `Cat`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    then it is a "callable".
    
    ## Classes as dependencies
    
    You might notice that to create an instance of a Python class, you use that same syntax.
    
    For example:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    In this case, `fluffy` is an instance of the class `Cat`.
    
    And to create `fluffy`, you are "calling" `Cat`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top