Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 132 for TYPES (0.01 sec)

  1. fastapi/types.py

    import types
    from enum import Enum
    from typing import Any, Callable, Optional, TypeVar, Union
    
    from pydantic import BaseModel
    
    DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
    UnionType = getattr(types, "UnionType", Union)
    ModelNameMap = dict[Union[type[BaseModel], type[Enum]], str]
    IncEx = Union[set[int], set[str], dict[int, Any], dict[str, Any]]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 455 bytes
    - Viewed (0)
  2. docs/pt/docs/python-types.md

    Mas, infelizmente, você não obtém nada útil:
    
    <img src="/img/python-types/image01.png">
    
    ### Adicionar tipos { #add-types }
    
    Vamos modificar uma única linha da versão anterior.
    
    Vamos mudar exatamente esse fragmento, os parâmetros da função, de:
    
    ```Python
        first_name, last_name
    ```
    
    para:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  3. docs/es/docs/python-types.md

    Escribes el primer parámetro de la función, `first_name`, luego un punto (`.`) y luego presionas `Ctrl+Espacio` para activar el autocompletado.
    
    Pero, tristemente, no obtienes nada útil:
    
    <img src="/img/python-types/image01.png">
    
    ### Añadir tipos { #add-types }
    
    Modifiquemos una sola línea de la versión anterior.
    
    Cambiaremos exactamente este fragmento, los parámetros de la función, de:
    
    ```Python
        first_name, last_name
    ```
    
    a:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.4K bytes
    - Viewed (1)
  4. docs/en/docs/python-types.md

    These types that have internal types are called "**generic**" types. And it's possible to declare them, even with their internal types.
    
    To declare those types and the internal types, you can use the standard Python module `typing`. It exists specifically to support these type hints.
    
    #### Newer versions of Python { #newer-versions-of-python }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  5. docs/ru/docs/python-types.md

    Вы вводите первый параметр функции, `first_name`, затем точку (`.`) и нажимаете `Ctrl+Space`, чтобы вызвать автозавершение.
    
    Но, к сожалению, ничего полезного не находится:
    
    <img src="/img/python-types/image01.png">
    
    ### Добавим типы { #add-types }
    
    Давайте изменим одну строку из предыдущей версии.
    
    Мы поменяем ровно этот фрагмент — параметры функции — с:
    
    ```Python
        first_name, last_name
    ```
    
    на:
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  6. docs/de/docs/python-types.md

    Aber leider erhalten Sie nichts Nützliches:
    
    <img src="/img/python-types/image01.png">
    
    ### Typen hinzufügen { #add-types }
    
    Lassen Sie uns eine einzelne Zeile aus der vorherigen Version ändern.
    
    Wir ändern den folgenden Teil, die Parameter der Funktion, von:
    
    ```Python
        first_name, last_name
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.9K bytes
    - Viewed (1)
  7. docs/es/docs/tutorial/extra-data-types.md

    * `Decimal`:
        * `Decimal` estándar de Python.
        * En requests y responses, manejado igual que un `float`.
    * Puedes revisar todos los tipos de datos válidos de Pydantic aquí: <a href="https://docs.pydantic.dev/latest/usage/types/types/" class="external-link" target="_blank">Tipos de datos de Pydantic</a>.
    
    ## Ejemplo { #example }
    
    Aquí tienes un ejemplo de una *path operation* con parámetros usando algunos de los tipos anteriores.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  8. requirements-tests.txt

    flask >=1.1.2,<4.0.0
    strawberry-graphql >=0.200.0,< 1.0.0
    anyio[trio] >=3.2.1,<5.0.0
    PyJWT==2.9.0
    pyyaml >=5.3.1,<7.0.0
    pwdlib[argon2] >=0.2.1
    inline-snapshot>=0.21.1
    pytest-codspeed==4.2.0
    # types
    types-ujson ==5.10.0.20240515
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 394 bytes
    - Viewed (0)
  9. fastapi/_compat/shared.py

    # Copy from Pydantic v2, compatible with v1
    if sys.version_info < (3, 10):
        WithArgsTypes: tuple[Any, ...] = (typing._GenericAlias, types.GenericAlias)  # type: ignore[attr-defined]
    else:
        WithArgsTypes: tuple[Any, ...] = (
            typing._GenericAlias,  # type: ignore[attr-defined]
            types.GenericAlias,
            types.UnionType,
        )  # pyright: ignore[reportAttributeAccessIssue]
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/body-nested-models.md

    * Data conversion
    * Data validation
    * Automatic documentation
    
    ## Special types and validation { #special-types-and-validation }
    
    Apart from normal singular types like `str`, `int`, `float`, etc. you can use more complex singular types that inherit from `str`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top