Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for imported (0.05 sec)

  1. tests/test_wrapped_method_forward_reference.py

    import functools
    
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    from .forward_reference_type import forwardref_method
    
    
    def passthrough(f):
        @functools.wraps(f)
        def method(*args, **kwargs):
            return f(*args, **kwargs)
    
        return method
    
    
    def test_wrapped_method_type_inference():
        """
        Regression test ensuring that when a method imported from another module
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 02 17:23:14 UTC 2025
    - 997 bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      TF_ImportGraphDefOptionsSetPrefix(opts, "imported4");
      TF_ImportGraphDefOptionsRemapControlDependency(opts, "imported/feed", feed);
      TF_GraphImportGraphDef(graph, graph_def, opts, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Operation* scalar4 =
          TF_GraphOperationByName(graph, "imported4/imported3/scalar");
      TF_Operation* feed4 =
          TF_GraphOperationByName(graph, "imported4/imported2/feed");
    
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Mon Nov 17 00:00:38 UTC 2025
    - 97K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/background-tasks.md

    The class `BackgroundTasks` comes directly from <a href="https://www.starlette.dev/background/" class="external-link" target="_blank">`starlette.background`</a>.
    
    It is imported/included directly into FastAPI so that you can import it from `fastapi` and avoid accidentally importing the alternative `BackgroundTask` (without the `s` at the end) from `starlette.background`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/bigger-applications.md

    And then we do the same for the module `users`.
    
    We could also import them like:
    
    ```Python
    from app.routers import items, users
    ```
    
    /// info
    
    The first version is a "relative import":
    
    ```Python
    from .routers import items, users
    ```
    
    The second version is an "absolute import":
    
    ```Python
    from app.routers import items, users
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. doc/go_spec.html

    This table illustrates how <code>Sin</code> is accessed in files
    that import the package after the
    various types of import declaration.
    </p>
    
    <pre class="grammar">
    Import declaration          Local name of Sin
    
    import   "lib/math"         math.Sin
    import m "lib/math"         m.Sin
    import . "lib/math"         Sin
    </pre>
    
    <p>
    An import declaration declares a dependency relation between
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 02 23:07:19 UTC 2025
    - 286.5K bytes
    - Viewed (1)
  6. docs/pt/docs/tutorial/debugging.md

    Então, a seção:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    vai executar.
    
    ---
    
    Isso não acontecerá se você importar esse módulo (arquivo).
    
    Então, se você tiver outro arquivo `importer.py` com:
    
    ```Python
    from myapp import app
    
    # Mais um pouco de código
    ```
    
    nesse caso, a variável criada automaticamente dentro de `myapp.py` não terá a variável `__name__` com o valor `"__main__"`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/bigger-applications.md

    from app.routers import items, users
    ```
    
    /// info | Información
    
    La primera versión es un "import relativo":
    
    ```Python
    from .routers import items, users
    ```
    
    La segunda versión es un "import absoluto":
    
    ```Python
    from app.routers import items, users
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/body-fields.md

    ## Importe `Field` { #import-field }
    
    Primeiro, você tem que importá-lo:
    
    {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[4] *}
    
    /// warning | Atenção
    
    Note que `Field` é importado diretamente do `pydantic`, não do `fastapi` como todo o resto (`Query`, `Path`, `Body`, etc).
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/bigger-applications.md

    Agora, vamos ver o módulo em `app/main.py`.
    
    Aqui é onde você importa e usa a classe `FastAPI`.
    
    Este será o arquivo principal em seu aplicativo que une tudo.
    
    E como a maior parte de sua lógica agora viverá em seu próprio módulo específico, o arquivo principal será bem simples.
    
    ### Importe o `FastAPI` { #import-fastapi }
    
    Você importa e cria uma classe `FastAPI` normalmente.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/path-params-numeric-validations.md

    ## Importe `Path` { #import-path }
    
    Primeiro, importe `Path` de `fastapi`, e importe `Annotated`:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *}
    
    /// info | Informação
    
    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