Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for person_2 (0.06 sec)

  1. tests/test_read_with_orm_mode.py

            full_name: str
    
            model_config = {"from_attributes": True}
    
        app = FastAPI()
    
        @app.post("/people/", response_model=PersonRead)
        def create_person(person: PersonCreate) -> Any:
            db_person = Person.model_validate(person)
            return db_person
    
        client = TestClient(app)
    
        person_data = {"name": "Dive", "lastname": "Wilson"}
        response = client.post("/people/", json=person_data)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  2. tests/test_jsonable_encoder.py

    from pydantic import BaseModel, Field, ValidationError
    
    
    class Person:
        def __init__(self, name: str):
            self.name = name
    
    
    class Pet:
        def __init__(self, owner: Person, name: str):
            self.owner = owner
            self.name = name
    
    
    @dataclass
    class Item:
        name: str
        count: int
    
    
    class DictablePerson(Person):
        def __iter__(self):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_python_types/test_tutorial010.py

    from docs_src.python_types.tutorial010_py39 import Person, get_person_name
    
    
    def test_get_person_name():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 166 bytes
    - Viewed (0)
  4. docs/es/docs/_llm-test.md

    Las pruebas añadidas aquí serán vistas por todas las personas que diseñan prompts específicos del idioma.
    
    Úsalo de la siguiente manera:
    
    * Ten un prompt específico del idioma – `docs/{language code}/llm-prompt.md`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:16:35 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/metadata.md

    ad><tbody><tr><td><code>name</code></td><td><code>str</code></td><td>El nombre identificativo de la persona/organización de contacto.</td></tr><tr><td><code>url</code></td><td><code>str</code></td><td>La URL que apunta a la información de contacto. DEBE tener el formato de una URL.</td></tr><tr><td><code>email</code></td><td><code>str</code></td><td>La dirección de correo electrónico de la persona/organización de contacto. DEBE tener el formato de una dirección de correo.</td></tr></tbody></table></details>...
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. docs/ru/docs/python-types.md

    ////
    
    ### Классы как типы { #classes-as-types }
    
    Вы также можете объявлять класс как тип переменной.
    
    Допустим, у вас есть класс `Person` с именем:
    
    {* ../../docs_src/python_types/tutorial010_py39.py hl[1:3] *}
    
    Тогда вы можете объявить переменную типа `Person`:
    
    {* ../../docs_src/python_types/tutorial010_py39.py hl[6] *}
    
    И снова вы получите полную поддержку редактора кода:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  7. docs/de/docs/python-types.md

    ### Klassen als Typen { #classes-as-types }
    
    Sie können auch eine Klasse als Typ einer Variablen deklarieren.
    
    Nehmen wir an, Sie haben eine Klasse `Person`, mit einem Namen:
    
    {* ../../docs_src/python_types/tutorial010_py39.py hl[1:3] *}
    
    Dann können Sie eine Variable vom Typ `Person` deklarieren:
    
    {* ../../docs_src/python_types/tutorial010_py39.py hl[6] *}
    
    Und wiederum bekommen Sie die volle Editor-Unterstützung:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.9K bytes
    - Viewed (1)
  8. docs/en/docs/python-types.md

    ////
    
    ### Classes as types { #classes-as-types }
    
    You can also declare a class as the type of a variable.
    
    Let's say you have a class `Person`, with a name:
    
    {* ../../docs_src/python_types/tutorial010_py39.py hl[1:3] *}
    
    Then you can declare a variable to be of type `Person`:
    
    {* ../../docs_src/python_types/tutorial010_py39.py hl[6] *}
    
    And then, again, you get all the editor support:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  9. docs/de/llm-prompt.md

    3.2) Do not apply rule 3 to the untranslated part of the heading inside curly brackets, which you shall not translate.
    
    
    ### German instructions, when to use and when not to use hyphens in words (written in first person, which is you)
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 09:39:53 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. docs/es/docs/history-design-future.md

    ## Futuro { #future }
    
    A este punto, ya está claro que **FastAPI** con sus ideas está siendo útil para muchas personas.
    
    Está siendo elegido sobre alternativas anteriores por adaptarse mejor a muchos casos de uso.
    
    Muchos desarrolladores y equipos ya dependen de **FastAPI** para sus proyectos (incluyéndome a mí y a mi equipo).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:15:01 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top