← oracle_full

fastapi_14492

resolved RESOLVED UNSUBMITTED PASS · None tool calls · 0 s · fastapi/fastapi

Task input

📝 Fix example of license identifier in documentation

Fix the Apache 2.0 license identifier to be `Apache-2.0`, not `MIT` (which is NOT an Apache 2.0 license).

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Patch

--- a/docs_src/metadata/tutorial001_1_py39.py
+++ b/docs_src/metadata/tutorial001_1_py39.py
@@ -28,7 +28,7 @@
     },
     license_info={
         "name": "Apache 2.0",
-        "identifier": "MIT",
+        "identifier": "Apache-2.0",
     },
 )
 

Test output

show
..                                                                       [100%]
=============================== warnings summary ===============================
../../../../../../../Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-0.50.0-py3-none-any/starlette/testclient.py:45
  /Users/jp/repos/kaggle-gemini-coding-agent-post-training/.envs/overlays/starlette-0.50.0-py3-none-any/starlette/testclient.py:45: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
    _PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
2 passed, 1 warning in 0.41s