Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for subClasses (0.29 sec)

  1. docs/pt/docs/tutorial/body-fields.md

        E `Field` do Pydantic retorna uma instância de `FieldInfo` também.
    
        `Body` também retorna objetos de uma subclasse de `FieldInfo` diretamente. E tem outras que você verá mais tarde que são subclasses da classe `Body`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 02 15:00:11 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/body-fields.md

        Actually, `Query`, `Path` and others you'll see next create objects of subclasses of a common `Param` class, which is itself a subclass of Pydantic's `FieldInfo` class.
    
        And Pydantic's `Field` returns an instance of `FieldInfo` as well.
    
        `Body` also returns objects of a subclass of `FieldInfo` directly. And there are others you will see later that are subclasses of the `Body` class.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  3. fastapi/security/oauth2.py

        as a dependency. All other OAuth2 classes inherit from it and customize it for
        each OAuth2 flow.
    
        You normally would not create a new class inheriting from it but use one of the
        existing subclasses, and maybe compose them if you want to support multiple flows.
    
        Read more about it in the
        [FastAPI docs for Security](https://fastapi.tiangolo.com/tutorial/security/).
        """
    
        def __init__(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  4. docs/en/docs/tutorial/response-model.md

    ```
    
    This simple case is handled automatically by FastAPI because the return type annotation is the class (or a subclass) of `Response`.
    
    And tools will also be happy because both `RedirectResponse` and `JSONResponse` are subclasses of `Response`, so the type annotation is correct.
    
    ### Annotate a Response Subclass
    
    You can also use a subclass of `Response` in the type annotation:
    
    ```Python hl_lines="8-9"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/extra-models.md

    And these models are all sharing a lot of the data and duplicating attribute names and types.
    
    We could do better.
    
    We can declare a `UserBase` model that serves as a base for our other models. And then we can make subclasses of that model that inherit its attributes (type declarations, validation, etc).
    
    All the data conversion, validation, documentation, etc. will still work as normally.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  6. docs/pt/docs/tutorial/extra-models.md

    Nós poderíamos fazer melhor.
    
    Podemos declarar um modelo `UserBase` que serve como base para nossos outros modelos. E então podemos fazer subclasses desse modelo que herdam seus atributos (declarações de tipo, validação, etc.).
    
    Toda conversão de dados, validação, documentação, etc. ainda funcionará normalmente.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/path-params-numeric-validations.md

    * `lt`: menor que (`l`ess `t`han)
    * `le`: menor que ou igual (`l`ess than or `e`qual)
    
    !!! info "Informação"
        `Query`, `Path` e outras classes que você verá a frente são subclasses de uma classe comum `Param`.
    
        Todas elas compartilham os mesmos parâmetros para validação adicional e metadados que você viu.
    
    !!! note "Detalhes Técnicos"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/path-params-numeric-validations.md

    * `gt`: `g`reater `t`han
    * `ge`: `g`reater than or `e`qual
    * `lt`: `l`ess `t`han
    * `le`: `l`ess than or `e`qual
    
    !!! info
        `Query`, `Path`, and other classes you will see later are subclasses of a common `Param` class.
    
        All of them share the same parameters for additional validation and metadata you have seen.
    
    !!! note "Technical Details"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  9. fastapi/dependencies/utils.py

            else:
                value = received_params.get(field.alias)
            field_info = field.field_info
            assert isinstance(
                field_info, params.Param
            ), "Params must be subclasses of Param"
            loc = (field_info.in_.value, field.alias)
            if value is None:
                if field.required:
                    errors.append(get_missing_field_error(loc=loc))
                else:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/handling-errors.md

    ```
    
    ### `RequestValidationError` vs `ValidationError`
    
    !!! warning "Aviso"
        Você pode pular estes detalhes técnicos caso eles não sejam importantes para você neste momento.
    
    `RequestValidationError` é uma subclasse do <a href="https://docs.pydantic.dev/latest/#error-handling" class="external-link" target="_blank">`ValidationError`</a> existente no Pydantic.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top