|
|
@ -17,8 +17,8 @@ def passthrough(f): |
|
|
def test_wrapped_method_type_inference(): |
|
|
def test_wrapped_method_type_inference(): |
|
|
""" |
|
|
""" |
|
|
Regression test ensuring that when a method imported from another module |
|
|
Regression test ensuring that when a method imported from another module |
|
|
is decorated with something that sets the __wrapped__ attribute, then |
|
|
is decorated with something that sets the __wrapped__ attribute (functools.wraps), |
|
|
the types are still processed correctly, including dereferencing of forward |
|
|
then the types are still processed correctly, including dereferencing of forward |
|
|
references. |
|
|
references. |
|
|
""" |
|
|
""" |
|
|
app = FastAPI() |
|
|
app = FastAPI() |
|
|
|