โ† baseline_full_v2

fastapi_14605

failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) ยท None tool calls ยท 0 s ยท fastapi/fastapi

Task input

๐Ÿ”Š Add a custom `FastAPIDeprecationWarning`

๐Ÿ”Š Add a custom `FastAPIDeprecationWarning` and use it for deprecated logic, like Pydantic v1 models.

Motivated by: https://sethmlarson.dev/deprecations-via-warnings-dont-work-for-python-libraries

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Test output

show
==================================== ERRORS ====================================
________ ERROR collecting tests/benchmarks/test_general_performance.py _________
ImportError while importing test module '/private/tmp/swe_work/baseline_full_v2/fastapi_14605/b/workspace/tests/benchmarks/test_general_performance.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Users/jp/.local/share/uv/python/cpython-3.13.15-macos-aarch64-none/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/benchmarks/test_general_performance.py:9: in <module>
    from fastapi.exceptions import FastAPIDeprecationWarning
E   ImportError: cannot import name 'FastAPIDeprecationWarning' from 'fastapi.exceptions' (/private/tmp/swe_work/baseline_full_v2/fastapi_14605/b/workspace/fastapi/exceptions.py)
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 error in 0.60s