Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 2,146 for none (0.15 sec)

  1. docs/pt/docs/python-types.md

    ```
    
    ////
    
    Em ambos os casos, isso significa que `item` poderia ser um `int` ou um `str`.
    
    #### Possivelmente `None` { #possibly-none }
    
    Você pode declarar que um valor pode ter um tipo, como `str`, mas que ele também pode ser `None`.
    
    No Python 3.6 e superior (incluindo o Python 3.10) você pode declará-lo importando e utilizando `Optional` do módulo `typing`.
    
    ```Python hl_lines="1  4"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  2. docs_src/cookie_params/tutorial001_py39.py

    from typing import Union
    
    from fastapi import Cookie, FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(ads_id: Union[str, None] = Cookie(default=None)):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 202 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_dependencies/test_tutorial012.py

                    "loc": ["header", "x-token"],
                    "msg": "Field required",
                    "input": None,
                },
                {
                    "type": "missing",
                    "loc": ["header", "x-key"],
                    "msg": "Field required",
                    "input": None,
                },
            ]
        }
    
    
    def test_get_no_headers_users(client: TestClient):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. docs_src/header_params/tutorial001_py39.py

    from typing import Union
    
    from fastapi import FastAPI, Header
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(user_agent: Union[str, None] = Header(default=None)):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 214 bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/DecorateReleaseNotes.java

         */
        @InputFile
        @PathSensitive(PathSensitivity.NONE)
        public abstract RegularFileProperty getHtmlFile();
    
        /**
         * The decorated HTML file
         */
        @OutputFile
        public abstract RegularFileProperty getDestinationFile();
    
        /**
         * JQuery used by the added decoration
         */
        @InputFiles
        @PathSensitive(PathSensitivity.NONE)
        public abstract ConfigurableFileCollection getJquery();
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Sep 28 06:35:15 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  6. docs_src/header_params/tutorial002_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import FastAPI, Header
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        strange_header: Annotated[
            Union[str, None], Header(convert_underscores=False)
        ] = None,
    ):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 288 bytes
    - Viewed (0)
  7. docs_src/query_params_str_validations/tutorial001_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: str | None = None):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 239 bytes
    - Viewed (0)
  8. docs_src/header_params/tutorial003_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import FastAPI, Header
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(x_token: Annotated[Union[list[str], None], Header()] = None):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 234 bytes
    - Viewed (0)
  9. docs_src/query_params_str_validations/tutorial014_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        hidden_query: str | None = Query(default=None, include_in_schema=False),
    ):
        if hidden_query:
            return {"hidden_query": hidden_query}
        else:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 298 bytes
    - Viewed (0)
  10. src/main/webapp/css/style.css

    }
    
    #result .site cite {
    	color: #093;
    	font-style: normal;
    }
    
    #result .more {
    	display: none;
    }
    
    #result .info {
    	font-size: 80%;
    }
    
    #result .url-copy {
    	color: #007bff;
    }
    
    #result .url-copied {
    	color: #2c974b;
    }
    
    #result .favorited {
    	display: none;
    }
    
    #result .favorited i {
    	color: #fab005;
    }
    
    #result .thumbnail {
    	width: 100px;
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sun Jan 12 06:14:02 UTC 2025
    - 2K bytes
    - Viewed (0)
Back to top