Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for passthrough (0.04 sec)

  1. tests/test_wrapped_method_forward_reference.py

        then the types are still processed correctly, including dereferencing of forward
        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)
Back to top