Search Options

Results per page
Sort
Preferred Languages
Advance

Results 811 - 820 of 907 for fdef (0.03 sec)

  1. docs/de/docs/tutorial/testing.md

    ```Python hl_lines="2  12  15-18"
    {!../../docs_src/app_testing/tutorial001.py!}
    ```
    
    /// tip | "Tipp"
    
    Beachten Sie, dass die Testfunktionen normal `def` und nicht `async def` sind.
    
    Und die Anrufe an den Client sind ebenfalls normale Anrufe, die nicht `await` verwenden.
    
    Dadurch können Sie `pytest` ohne Komplikationen direkt nutzen.
    
    ///
    
    /// note | "Technische Details"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/testing.md

    ```Python hl_lines="2  12  15-18"
    {!../../docs_src/app_testing/tutorial001.py!}
    ```
    
    /// tip | "Подсказка"
    
    Обратите внимание, что тестирующая функция является обычной `def`, а не асинхронной `async def`.
    
    И вызов клиента также осуществляется без `await`.
    
    Это позволяет вам использовать `pytest` без лишних усложнений.
    
    ///
    
    /// note | "Технические детали"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/http/NtlmHttpURLConnection.java

        }
    
    
        @Override
        public int getHeaderFieldInt ( String header, int def ) {
            handshake();
            return this.connection.getHeaderFieldInt(header, def);
        }
    
    
        @Override
        public long getHeaderFieldDate ( String header, long def ) {
            handshake();
            return this.connection.getHeaderFieldDate(header, def);
        }
    
    
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 25.5K bytes
    - Viewed (0)
  4. docs_src/schema_extra_example/tutorial005_an_py310.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Annotated[
            Item,
            Body(
                openapi_examples={
                    "normal": {
                        "summary": "A normal example",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/testing.md

    ```Python hl_lines="2  12  15-18"
    {!../../docs_src/app_testing/tutorial001.py!}
    ```
    
    /// tip | "Dica"
    
    Observe que as funções de teste são `def` normais, não `async def`.
    
    E as chamadas para o cliente também são chamadas normais, não usando `await`.
    
    Isso permite que você use `pytest` diretamente sem complicações.
    
    ///
    
    /// note | "Detalhes técnicos"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/model/PropertyDoc.groovy

        }
    
        PropertyDoc forClass(ClassDoc referringClass) {
            return forClass(referringClass, [])
        }
    
        PropertyDoc forClass(ClassDoc referringClass, Collection<ExtraAttributeDoc> additionalValues) {
            def refererMetaData = referringClass.classMetaData
            if (refererMetaData == this.referringClass && additionalValues.isEmpty()) {
                return this
            }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 3.1K bytes
    - Viewed (0)
  7. scripts/playwright/header_param_models/image01.py

    import subprocess
    import time
    
    import httpx
    from playwright.sync_api import Playwright, sync_playwright
    
    
    # Run playwright codegen to generate the code below, copy paste the sections in run()
    def run(playwright: Playwright) -> None:
        browser = playwright.chromium.launch(headless=False)
        # Update the viewport manually
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. scripts/playwright/request_form_models/image01.py

    import subprocess
    import time
    
    import httpx
    from playwright.sync_api import Playwright, sync_playwright
    
    
    # Run playwright codegen to generate the code below, copy paste the sections in run()
    def run(playwright: Playwright) -> None:
        browser = playwright.chromium.launch(headless=False)
        # Update the viewport manually
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 13 09:14:46 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/ApiChange.groovy

        String type
        String member
        List<String> changes
    
        static ApiChange parse(Object json) {
            new ApiChange(json.type, json.member, json.changes ?: [])
        }
    
        String toString() {
            def formattedMember = member - "$type."
            "$type - $formattedMember - $changes"
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1023 bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/dependencies/sub-dependencies.md

    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    //// tab | Python 3.6+ без Annotated
    
    /// tip | "Подсказка"
    
    Предпочтительнее использовать версию с аннотацией, если это возможно.
    
    ///
    
    ```Python hl_lines="1"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top