Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for __none__ (0.24 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java

    import static org.apache.maven.cling.invoker.mvnenc.EncryptInvoker.OK;
    
    /**
     * The "init" goal.
     */
    @Singleton
    @Named("init")
    public class Init extends InteractiveGoalSupport {
        private static final String NONE = "__none__";
    
        @Inject
        public Init(MessageBuilderFactory messageBuilderFactory, SecDispatcher secDispatcher) {
            super(messageBuilderFactory, secDispatcher);
        }
    
        @SuppressWarnings("MethodLength")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/debugging.md

    ## Chamar `uvicorn` { #call-uvicorn }
    
    Em sua aplicação FastAPI, importe e execute `uvicorn` diretamente:
    
    {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *}
    
    ### Sobre `__name__ == "__main__"` { #about-name-main }
    
    O objetivo principal de `__name__ == "__main__"` é ter algum código que seja executado quando seu arquivo for chamado com:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/debugging.md

    ## `uvicorn` aufrufen { #call-uvicorn }
    
    Importieren und führen Sie `uvicorn` direkt in Ihrer FastAPI-Anwendung aus:
    
    {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *}
    
    ### Über `__name__ == "__main__"` { #about-name-main }
    
    Der Hauptzweck von `__name__ == "__main__"` ist, dass Code ausgeführt wird, wenn Ihre Datei mit folgendem Befehl aufgerufen wird:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_dependencies/test_tutorial008.py

        c_mock = Mock()
    
        with (
            patch(
                f"{module.__name__}.generate_dep_a",
                return_value=a_mock,
                create=True,
            ),
            patch(
                f"{module.__name__}.generate_dep_b",
                return_value=b_mock,
                create=True,
            ),
            patch(
                f"{module.__name__}.generate_dep_c",
                return_value=c_mock,
                create=True,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/debugging.md

    ## Call `uvicorn` { #call-uvicorn }
    
    In your FastAPI application, import and run `uvicorn` directly:
    
    {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *}
    
    ### About `__name__ == "__main__"` { #about-name-main }
    
    The main purpose of the `__name__ == "__main__"` is to have some code that is executed when your file is called with:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. docs_src/debugging/tutorial001_py39.py

    import uvicorn
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def root():
        a = "a"
        b = "b" + a
        return {"hello world": b}
    
    
    if __name__ == "__main__":
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 223 bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/debugging.md

    ## Виклик `uvicorn`
    
    У Вашому FastAPI-додатку імпортуйте та запустіть `uvicorn` безпосередньо:
    
    {* ../../docs_src/debugging/tutorial001.py hl[1,15] *}
    
    ### Про `__name__ == "__main__"`
    
    Головна мета використання `__name__ == "__main__"` — це забезпечення виконання певного коду тільки тоді, коли файл запускається безпосередньо:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Feb 28 14:24:45 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/debugging.md

    ## Вызов `uvicorn` { #call-uvicorn }
    
    В вашем FastAPI приложении, импортируйте и вызовите `uvicorn` напрямую:
    
    {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *}
    
    ### Описание `__name__ == "__main__"` { #about-name-main }
    
    Главная цель использования `__name__ == "__main__"` в том, чтобы код выполнялся при запуске файла с помощью:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/debugging.md

    ## Llama a `uvicorn` { #call-uvicorn }
    
    En tu aplicación de FastAPI, importa y ejecuta `uvicorn` directamente:
    
    {* ../../docs_src/debugging/tutorial001_py39.py hl[1,15] *}
    
    ### Acerca de `__name__ == "__main__"` { #about-name-main }
    
    El objetivo principal de `__name__ == "__main__"` es tener algo de código que se ejecute cuando tu archivo es llamado con:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  10. tests/test_generic_parameterless_depends.py

    
    class A:
        pass
    
    
    class B:
        pass
    
    
    @app.get("/a")
    async def a(dep: Dep[A]):
        return {"cls": dep.__class__.__name__}
    
    
    @app.get("/b")
    async def b(dep: Dep[B]):
        return {"cls": dep.__class__.__name__}
    
    
    client = TestClient(app)
    
    
    def test_generic_parameterless_depends():
        response = client.get("/a")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top