Browse Source

Verify that __wrapped__ is traversed more than one level.

pull/5077/head
Lucas Wiman 3 years ago
parent
commit
cd17a8ceaf
  1. 1
      tests/test_wrapped_method_forward_reference.py

1
tests/test_wrapped_method_forward_reference.py

@ -22,3 +22,4 @@ def test_wrapped_method_type_inference():
"""
app = FastAPI()
app.get("/endpoint")(passthrough(forwardref_method))
app.get("/endpoint2")(passthrough(passthrough(forwardref_method)))

Loading…
Cancel
Save