Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
large_string
repo
large_string
base_commit
large_string
patch
large_string
test_patch
large_string
eval_script
large_string
problem_statement
large_string
hints_text
large_string
created_at
large_string
version
large_string
FAIL_TO_PASS
list
PASS_TO_PASS
list
environment_setup_commit
large_string
image
large_string
log_parser
large_string
eval_type
large_string
difficulty
large_string
fastapi__fastapi.02e108d1.feature_add.71e8518f.lv1
fastapi/fastapi
02e108d1663149faac4156dd23595cbdf74287c2
diff --git a/fastapi/_compat/__init__.py b/fastapi/_compat/__init__.py index 0aadd68d..4ebe1622 100644 --- a/fastapi/_compat/__init__.py +++ b/fastapi/_compat/__init__.py @@ -5,10 +5,10 @@ from .main import Undefined as Undefined from .main import UndefinedType as UndefinedType from .main import Url as Url from .mai...
diff --git a/tests/test_compat.py b/tests/test_compat.py new file mode 100644 index 00000000..0184c9a2 --- /dev/null +++ b/tests/test_compat.py @@ -0,0 +1,166 @@ +from typing import Any, Dict, List, Union + +from fastapi import FastAPI, UploadFile +from fastapi._compat import ( + Undefined, + _get_model_config, +...
#!/bin/bash set -uxo pipefail source /opt/miniconda3/bin/activate conda activate testbed cd /testbed git config --global --add safe.directory /testbed cd /testbed git status git show git -c core.fileMode=false diff 02e108d1663149faac4156dd23595cbdf74287c2 source /opt/miniconda3/bin/activate conda activate testbed pytho...
## Task **Task Statement: Cross-Version Pydantic Compatibility Layer** Develop a compatibility abstraction layer that provides unified interfaces for working with Pydantic models and fields across different versions (v1 and v2). The system should: **Core Functionalities:** - Detect and handle both Pydantic v1 and v2 ...
2025-01-01T00:00:00Z
0.121.2
[ "tests/test_compat.py::test_model_field_default_required", "tests/test_compat.py::test_v1_plain_validator_function", "tests/test_compat.py::test_is_model_field", "tests/test_compat.py::test_get_model_config", "tests/test_compat.py::test_complex", "tests/test_compat.py::test_propagates_pydantic2_model_conf...
[ "tests/test_enforce_once_required_parameter.py::test_schema", "tests/test_enforce_once_required_parameter.py::test_get_invalid", "tests/test_enforce_once_required_parameter.py::test_get_valid", "tests/test_tutorial/test_dependencies/test_tutorial008e.py::test_get_users_me[tutorial008e]", "tests/test_tutoria...
02e108d1663149faac4156dd23595cbdf74287c2
crpi-zydu2sizsszsa2wp.cn-hangzhou.personal.cr.aliyuncs.com/hrb518/specs_fastapi-instance_835a08db:latest
parse_log_pytest_v2
pass_and_fail
15 min - 1 hour
README.md exists but content is empty.
Downloads last month
10