Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Square (3.3 sec)

  1. tests/test_tuples.py

        y: float
    
    
    @app.post("/model-with-tuple/")
    def post_model_with_tuple(item_group: ItemGroup):
        return item_group
    
    
    @app.post("/tuple-of-models/")
    def post_tuple_of_models(square: Tuple[Coordinate, Coordinate]):
        return square
    
    
    @app.post("/tuple-form/")
    def hello(values: Tuple[int, int] = Form()):
        return values
    
    
    client = TestClient(app)
    
    
    def test_model_with_tuple_valid():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  2. docs/en/docs/python-types.md

        As the type, put the `List` that you imported from `typing`.
    
        As the list is a type that contains some internal types, you put them in square brackets:
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/python_types/tutorial006.py!}
        ```
    
    !!! info
        Those internal types in the square brackets are called "type parameters".
    
        In this case, `str` is the type parameter passed to `List` (or `list` in Python 3.9 and above).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-nested-models.md

    * If you are in a Python version lower than 3.9, import their equivalent version from the `typing` module
    * Pass the internal type(s) as "type parameters" using square brackets: `[` and `]`
    
    In Python 3.9 it would be:
    
    ```Python
    my_list: list[str]
    ```
    
    In versions of Python before 3.9, it would be:
    
    ```Python
    from typing import List
    
    my_list: List[str]
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  4. docs/pt/docs/async.md

    ### Outras formas de código assíncrono
    
    Esse estilo de usar `async` e `await` é relativamente novo na linguagem.
    
    Mas ele faz o trabalho com código assíncrono muito mais fácil.
    
    Essa mesma sintaxe (ou quase a mesma) foi também incluída recentemente em versões modernas do JavaScript (no navegador e NodeJS).
    
    Mas antes disso, controlar código assíncrono era bem mais complexo e difícil.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  5. docs/pt/docs/python-types.md

    Ao fazer isso, seu editor pode fornecer suporte mesmo durante o processamento de itens da lista:
    
    <img src="/img/python-types/image05.png">
    
    Sem tipos, isso é quase impossível de alcançar.
    
    Observe que a variável `item` é um dos elementos da lista `items`.
    
    E, ainda assim, o editor sabe que é um `str` e fornece suporte para isso.
    
    #### `Tuple` e `Set`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  6. docs/pt/docs/alternatives.md

    ### <a href="https://github.com/encode/apistar" class="external-link" target="_blank">APIStar</a> (<= 0.5)
    
    Antes de decidir construir **FastAPI** eu encontrei o servidor **APIStar**. Tinha quase tudo que eu estava procurando e tinha um grande projeto.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/body.md

    O corpo da **requisição** é a informação enviada pelo cliente para sua API. O corpo da **resposta** é a informação que sua API envia para o cliente.
    
    Sua API quase sempre irá enviar um corpo na **resposta**. Mas os clientes não necessariamente precisam enviar um corpo em toda **requisição**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  8. docs/pt/docs/deployment/docker.md

    A partir daí, perto do final do `Dockerfile`, copiamos todo o código. Como isso é o que **muda com mais frequência**, colocamos perto do final, porque quase sempre, qualquer coisa depois desse passo não será capaz de usar o cache.
    
    ```Dockerfile
    COPY ./app /code/app
    ```
    
    ### Construindo a Imagem Docker
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 37.4K bytes
    - Viewed (0)
Back to top