Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 34 of 34 for if (0.2 sec)

  1. tests/test_include_router_defaults_overrides.py

        url = ""
        content_type_level = "0"
        if override1:
            url += "/level1"
            content_type_level = "1"
        if override2:
            url += "/level2"
            content_type_level = "2"
        if override3:
            url += "/level3"
            content_type_level = "3"
        if override4:
            url += "/level4"
            content_type_level = "4"
        if override5:
            url += "/override5"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 358.6K bytes
    - Viewed (0)
  2. docs/en/docs/release-notes.md

    app = FastAPI()
    
    @app.get("/items/invalidnone", response_model=Item)
    def get_invalid_none():
        if flag:
            return {"name": "foo"}
        # if flag is False, at this point the function will implicitly return None
    ```
    
    If you have *path operations* using `response_model` that need to be allowed to return `None`, make it explicit in `response_model` using `Union[Something, None]`:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Apr 28 00:28:00 GMT 2024
    - 385.5K bytes
    - Viewed (1)
  3. api/go1.16.txt

    pkg syscall (darwin-arm64), const IPV6_BINDV6ONLY = 27
    pkg syscall (darwin-arm64), const IPV6_BINDV6ONLY ideal-int
    pkg syscall (darwin-arm64), const IPV6_BOUND_IF = 125
    pkg syscall (darwin-arm64), const IPV6_BOUND_IF ideal-int
    pkg syscall (darwin-arm64), const IPV6_CHECKSUM = 26
    pkg syscall (darwin-arm64), const IPV6_CHECKSUM ideal-int
    pkg syscall (darwin-arm64), const IPV6_DEFAULT_MULTICAST_HOPS = 1
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  4. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const IP_MINTTL ideal-int
    pkg syscall (netbsd-arm64-cgo), const IP_MSS = 576
    pkg syscall (netbsd-arm64-cgo), const IP_MSS ideal-int
    pkg syscall (netbsd-arm64-cgo), const IP_MULTICAST_IF = 9
    pkg syscall (netbsd-arm64-cgo), const IP_MULTICAST_LOOP = 11
    pkg syscall (netbsd-arm64-cgo), const IP_MULTICAST_TTL = 10
    pkg syscall (netbsd-arm64-cgo), const IP_OFFMASK = 8191
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
Back to top