- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for forwardref_method (0.07 sec)
-
tests/test_wrapped_method_forward_reference.py
references. """ app = FastAPI() client = TestClient(app) app.post("/endpoint")(passthrough(forwardref_method)) app.post("/endpoint2")(passthrough(passthrough(forwardref_method))) with client: response = client.post("/endpoint", json={"input": {"x": 0}}) response2 = client.post("/endpoint2", json={"input": {"x": 0}})Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 02 17:23:14 UTC 2025 - 997 bytes - Viewed (0) -
tests/forward_reference_type.py
from pydantic import BaseModel def forwardref_method(input: "ForwardRefModel") -> "ForwardRefModel": return ForwardRefModel(x=input.x + 1) class ForwardRefModel(BaseModel):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 02 17:23:14 UTC 2025 - 196 bytes - Viewed (0)