- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for dev0 (0.23 sec)
-
tests/test_include_router_defaults_overrides.py
class ResponseLevel4(JSONResponse): media_type = "application/x-level-4" class ResponseLevel5(JSONResponse): media_type = "application/x-level-5" async def dep0(response: Response): response.headers["x-level0"] = "True" async def dep1(response: Response): response.headers["x-level1"] = "True" async def dep2(response: Response):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 358.6K bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial006c.py
client = TestClient(app) def test_redirect_status_code(): response = client.get("/pydantic", follow_redirects=False) assert response.status_code == 302 assert response.headers["location"] == "https://docs.pydantic.dev/" def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 899 bytes - Viewed (0) -
scripts/docs.py
os.environ["LINENUMS"] = "true" if lang is None: lang = "en" lang_path: Path = docs_path / lang os.chdir(lang_path) mkdocs.commands.serve.serve(dev_addr="127.0.0.1:8008") def get_updated_config_content() -> Dict[str, Any]: config = get_en_config() languages = [{"en": "/"}] new_alternate: List[Dict[str, str]] = []
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jan 22 19:26:14 GMT 2024 - 10.9K bytes - Viewed (1) -
tensorflow/api_template_v1.__init__.py
from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader from tensorflow.python.util.lazy_loader import KerasLazyLoader as _KerasLazyLoader # API IMPORTS PLACEHOLDER # WRAPPER_PLACEHOLDER if "dev" in __version__: # pylint: disable=undefined-variable _logging.warning(""" TensorFlow's `tf-nightly` package will soon be updated to TensorFlow 2.0. Please upgrade your code to TensorFlow 2.0:
Python - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jan 23 02:14:00 GMT 2024 - 7.4K bytes - Viewed (0) -
fastapi/applications.py
* `name`: (`str`) **REQUIRED** (if a `license_info` is set). The license name used for the API. * `identifier`: (`str`) An [SPDX](https://spdx.dev/) license expression for the API. The `identifier` field is mutually exclusive of the `url` field. Available since OpenAPI 3.1.0, FastAPI 0.99.0.
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 172.2K bytes - Viewed (0) -
docs_src/custom_response/tutorial006c.py
from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/pydantic", response_class=RedirectResponse, status_code=302) async def redirect_pydantic():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 237 bytes - Viewed (0)