Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: TypeError
Message: Couldn't cast array of type string to null
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 361, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2315, in cast_table_to_schema
cast_array_to_feature(
~~~~~~~~~~~~~~~~~~~~~^
table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
feature,
^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2121, in cast_array_to_feature
casted_array_values = _c(array.values, feature.feature)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2155, in cast_array_to_feature
return array_cast(
array,
...<2 lines>...
allow_decimal_to_str=allow_decimal_to_str,
)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1863, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2014, in array_cast
raise TypeError(f"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}")
TypeError: Couldn't cast array of type string to null
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
instance_id string | repo string | base_commit string | patch string | test_patch string | problem_statement string | hints_text string | created_at timestamp[s] | FAIL_TO_PASS list | PASS_TO_PASS list | PASS_TO_PASS_flaky list | FAIL_TO_PASS_dropped_validator list | PASS_TO_PASS_dropped_validator list | harness_compatible bool | env_pinned_to_commit_date bool | split string | statement_source string | issue_urls list | pr_url string | fix_commit string | merged_at timestamp[s] | graph string | embeddings string | snapshot string | test_patch_files list | patch_files list | requirements list | build_requires list | localization dict | quality dict | issue_created_at timestamp[s] | post_cutoff bool |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arrow_1218 | arrow-py/arrow | 0fe5f065718e5af3ab47903d1bec82d87d202a63 | diff --git a/arrow/locales.py b/arrow/locales.py
index 63b2d48..5d31aa2 100644
--- a/arrow/locales.py
+++ b/arrow/locales.py
@@ -4015,16 +4015,18 @@ class ThaiLocale(Locale):
timeframes = {
"now": "ขณะนี้",
"second": "วินาที",
- "seconds": "{0} ไม่กี่วินาที",
- "minute": "1 นาที",
+... | diff --git a/tests/test_locales.py b/tests/test_locales.py
index 6db3ad2..37444a0 100644
--- a/tests/test_locales.py
+++ b/tests/test_locales.py
@@ -1498,6 +1498,44 @@ class TestThaiLocale:
result = self.locale._format_relative("1 ชั่วโมง", "hour", -1)
assert result == "1 ชั่วโมง ที่ผ่านมา"
+ def... | HH token does not support the number 24, even though the documentation says it should (00 to 24)
According to ISO 8601 `arrow.get('2019-10-29T24:00:00')` should parse to October 30, 2019 (`2019-10-30T00:00:00`), but instead is throwing an exception `ValueError: hour must be in 0..23`
It also fails when doing explici... | 2025-07-24T05:31:52 | [
"tests.test_locales.TestThaiLocale::test_format_timeframe",
"tests.test_locales.TestThaiLocale::test_weekday"
] | [
"tests.test_locales.TestAlbanianLocale::test_format_timeframe",
"tests.test_locales.TestAlbanianLocale::test_weekday_and_month",
"tests.test_locales.TestAmharicLocale::test_describe_am",
"tests.test_locales.TestAmharicLocale::test_format_relative_future",
"tests.test_locales.TestAmharicLocale::test_format_r... | [] | [] | [] | true | false | core | issue | [
"https://github.com/arrow-py/arrow/issues/703"
] | https://github.com/arrow-py/arrow/pull/1218 | d8bf13d4441300fff017d2fe33d4eae032e37768 | 2025-08-05T05:39:05 | graphs/arrow_0fe5f065718e5af3ab47903d1bec82d87d202a63.json | embeddings/arrow_0fe5f065718e5af3ab47903d1bec82d87d202a63.npz | snapshots/arrow_1218.tgz | [
"tests/test_locales.py"
] | [
"arrow/locales.py"
] | [
"cfgv==3.5.0",
"coverage==7.17.0",
"dateparser==1.2.0",
"distlib==0.4.4",
"filelock==4.2.4",
"identify==2.6.20",
"iniconfig==2.3.1",
"nodeenv==1.11.0",
"packaging==26.3",
"platformdirs==4.13.5",
"pluggy==1.7.0",
"pre-commit==4.7.0",
"pygments==2.21.0",
"pytest-cov==7.1.0",
"pytest-mock==... | [
"flit_core >=3.2,<4"
] | {
"files": [
"arrow/locales.py"
],
"nodes_edited": [
"arrow.locales.ThaiLocale"
],
"nodes_added": [],
"module_level": [],
"aux_files": []
} | {
"new_api_in_tests": [],
"new_api_unstated": [],
"underspecified": false,
"f2p_count": 2,
"patch_lines": 19,
"files_changed": 1,
"statement_chars": 702
} | 2019-10-30T02:19:58 | false | |
arrow_1222 | arrow-py/arrow | 7ccbe66122ca53d90acf9c69c37aa95c81a1fe89 | diff --git a/arrow/arrow.py b/arrow/arrow.py
index d3d476e..d40927e 100644
--- a/arrow/arrow.py
+++ b/arrow/arrow.py
@@ -550,14 +550,14 @@ class Arrow:
(<Arrow [2021-02-20T00:00:00+00:00]>, <Arrow [2021-02-26T23:59:59.999999+00:00]>)
"""
- if not 1 <= week_start <= 7:
- raise V... | diff --git a/tests/test_arrow.py b/tests/test_arrow.py
index 9daee5e..b595e4e 100644
--- a/tests/test_arrow.py
+++ b/tests/test_arrow.py
@@ -1727,6 +1727,162 @@ class TestArrowSpan:
assert floor == self.arrow.floor("month")
assert ceil == self.arrow.ceil("month")
+ def test_floor_week_start(self)... | Add week_start parameter to floor() and ceil()
<!--
Thanks for taking the time to submit this feature request.
Please provide us with a detailed description of the potential improvement.
-->
## Feature Request
I would like to be able to specify the day of the week in the `floor` and `ceil` functions, e.g.
```
first... | 2025-09-10T00:58:22 | [
"tests.test_arrow.TestArrowSpan::test_ceil_week_start",
"tests.test_arrow.TestArrowSpan::test_floor_ceil_week_start_backward_compatibility",
"tests.test_arrow.TestArrowSpan::test_floor_ceil_week_start_ignored_for_non_week_frames",
"tests.test_arrow.TestArrowSpan::test_floor_ceil_week_start_validation",
"tes... | [
"tests.test_arrow.TestArrowAttribute::test_float_timestamp",
"tests.test_arrow.TestArrowAttribute::test_getattr_ambiguous",
"tests.test_arrow.TestArrowAttribute::test_getattr_base",
"tests.test_arrow.TestArrowAttribute::test_getattr_dt_value",
"tests.test_arrow.TestArrowAttribute::test_getattr_fold",
"tes... | [] | [] | [] | true | false | core | issue | [
"https://github.com/arrow-py/arrow/issues/1221"
] | https://github.com/arrow-py/arrow/pull/1222 | 4c8c44aefc0e5504b9c3cbf0d6adbb0ec4aa4571 | 2025-10-02T03:44:02 | graphs/arrow_7ccbe66122ca53d90acf9c69c37aa95c81a1fe89.json | embeddings/arrow_7ccbe66122ca53d90acf9c69c37aa95c81a1fe89.npz | snapshots/arrow_1222.tgz | [
"tests/test_arrow.py"
] | [
"arrow/arrow.py",
"docs/guide.rst"
] | [
"cfgv==3.5.0",
"coverage==7.17.0",
"dateparser==1.4.3",
"distlib==0.4.4",
"filelock==4.2.4",
"identify==2.6.20",
"iniconfig==2.3.1",
"nodeenv==1.11.0",
"packaging==26.3",
"platformdirs==4.13.5",
"pluggy==1.7.0",
"pre-commit==4.7.0",
"pygments==2.21.0",
"pytest-cov==7.1.0",
"pytest-mock==... | [
"flit_core >=3.2,<4"
] | {
"files": [
"arrow/arrow.py"
],
"nodes_edited": [
"arrow.arrow.Arrow.ceil",
"arrow.arrow.Arrow.floor",
"arrow.arrow.Arrow.span"
],
"nodes_added": [],
"module_level": [],
"aux_files": []
} | {
"new_api_in_tests": [],
"new_api_unstated": [],
"underspecified": false,
"f2p_count": 6,
"patch_lines": 22,
"files_changed": 1,
"statement_chars": 685
} | 2025-09-08T16:57:00 | true | |
attrs_1428 | python-attrs/attrs | 94caa57142c057ce52504cdf239ae0ed3168f9b5 | diff --git a/changelog.d/1427.change.md b/changelog.d/1427.change.md
new file mode 100644
index 0000000..4c60e88
--- /dev/null
+++ b/changelog.d/1427.change.md
@@ -0,0 +1 @@
+Values passed to the `__init__()` method of `attrs` classes are now correctly passed to `__attrs_pre_init__()` instead of their default values (i... | diff --git a/tests/test_make.py b/tests/test_make.py
index 80c0066..2e35057 100644
--- a/tests/test_make.py
+++ b/tests/test_make.py
@@ -715,6 +715,49 @@ class TestAttributes:
assert 3 == val == inst.kw_and_default
+ @pytest.mark.usefixtures("with_and_without_validation")
+ def test_pre_init_with_mix... | Defaults are passed to `__attrs_pre_init__` instead of the init values themselves
The documentation says:
>If `__attrs_pre_init__` takes more than the `self` argument, the attrs-generated `__init__` will call it with the same arguments it received itself.
However, if those attributes are specified with default values ... | 2025-04-18T21:20:00 | [
"tests.test_make.TestAttributes::test_pre_init_with_mixture_of_defaults_and_kw_only[False]",
"tests.test_make.TestAttributes::test_pre_init_with_mixture_of_defaults_and_kw_only[True]"
] | [
"tests.test_make.TestAttributes::test_adds_all_by_default[__eq__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__hash__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__init__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__repr__]",
"tests.test_make.TestAttribute... | [] | [] | [
"tests.test_make.TestMatchArgs::test_match_args"
] | true | false | core | issue | [
"https://github.com/python-attrs/attrs/issues/1427"
] | https://github.com/python-attrs/attrs/pull/1428 | 937b1e232803cc4ec9b9375ef525fc57c24ec498 | 2025-07-27T06:10:10 | graphs/attrs_94caa57142c057ce52504cdf239ae0ed3168f9b5.json | embeddings/attrs_94caa57142c057ce52504cdf239ae0ed3168f9b5.npz | snapshots/attrs_1428.tgz | [
"tests/test_make.py"
] | [
"changelog.d/1427.change.md",
"src/attr/_make.py"
] | [
"ast-serialize==0.13.1",
"cloudpickle==3.1.2",
"decorator==5.3.1",
"hypothesis==6.170.8",
"iniconfig==2.3.1",
"jinja2==3.1.6",
"jsonschema-specifications==2025.9.1",
"jsonschema==4.26.0",
"librt==0.16.0",
"markupsafe==3.0.4",
"mypy-extensions==1.1.0",
"mypy==2.4.0",
"packaging==26.3",
"pat... | [
"editables",
"hatch-fancy-pypi-readme>=23.2.0",
"hatch-vcs",
"hatchling"
] | {
"files": [
"src/attr/_make.py"
],
"nodes_edited": [
"attr._make._attrs_to_init_script"
],
"nodes_added": [],
"module_level": [],
"aux_files": []
} | {
"new_api_in_tests": [],
"new_api_unstated": [],
"underspecified": false,
"f2p_count": 2,
"patch_lines": 9,
"files_changed": 1,
"statement_chars": 1815
} | 2025-04-18T19:29:56 | true | |
attrs_1457 | python-attrs/attrs | af349876f4fb5df2b71a3f4878239b775bc89230 | diff --git a/changelog.d/1457.breaking.md b/changelog.d/1457.breaking.md
new file mode 100644
index 0000000..085bcb0
--- /dev/null
+++ b/changelog.d/1457.breaking.md
@@ -0,0 +1,28 @@
+Class-level `kw_only=True` behavior is now consistent with `dataclasses`.
+
+Previously, a class that sets `kw_only=True` makes all attr... | diff --git a/tests/test_make.py b/tests/test_make.py
index 8f4846a..6e35c03 100644
--- a/tests/test_make.py
+++ b/tests/test_make.py
@@ -55,7 +55,9 @@ from .strategies import (
from .utils import simple_attr
-attrs_st = simple_attrs.map(lambda c: Attribute.from_counting_attr("name", c))
+attrs_st = simple_attrs.ma... | Suggestion: Overriding class-level `kw_only=True` option in attributes
First of all, thank you for building such a wonderful package! It is now an essential part of both my work and my hobby projects.
This issue is similar to #481, but I think it's more suitable to open a new issue for discussion instead of reviving... | 2025-08-01T06:13:57 | [
"tests.test_make.TestClassBuilder::test_handles_missing_meta_on_class",
"tests.test_make.TestClassBuilder::test_repr",
"tests.test_make.TestClassBuilder::test_returns_self",
"tests.test_make.TestKeywordOnlyAttributes::test_attr_level_kw_only_and_class_level_kw_only",
"tests.test_make.TestKeywordOnlyAttribut... | [
"tests.test_make.TestAttributes::test_adds_all_by_default[__eq__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__hash__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__init__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__repr__]",
"tests.test_make.TestAttribute... | [] | [] | [
"tests.test_make.TestMatchArgs::test_match_args"
] | true | false | core | issue | [
"https://github.com/python-attrs/attrs/issues/980"
] | https://github.com/python-attrs/attrs/pull/1457 | 6e3786c599279f24e91b0d57ef448f7a85d7a69f | 2025-08-04T06:49:22 | graphs/attrs_af349876f4fb5df2b71a3f4878239b775bc89230.json | embeddings/attrs_af349876f4fb5df2b71a3f4878239b775bc89230.npz | snapshots/attrs_1457.tgz | [
"tests/test_make.py"
] | [
"changelog.d/1457.breaking.md",
"src/attr/__init__.pyi",
"src/attr/_make.py",
"src/attr/_next_gen.py",
"src/attrs/__init__.pyi"
] | [
"cloudpickle==3.1.2",
"execnet==2.1.2",
"hypothesis==6.170.8",
"iniconfig==2.3.1",
"packaging==26.3",
"pluggy==1.7.0",
"psutil==7.2.2",
"pygments==2.21.0",
"pympler==1.1",
"pytest-xdist==3.8.0",
"pytest==9.1.1",
"sortedcontainers==2.4.0"
] | [
"editables",
"hatch-fancy-pypi-readme>=23.2.0",
"hatch-vcs",
"hatchling"
] | {
"files": [
"src/attr/_make.py",
"src/attr/_next_gen.py"
],
"nodes_edited": [
"attr._make.Attribute.from_counting_attr",
"attr._make._ClassBuilder.__init__",
"attr._make._transform_attrs",
"attr._make.attrib",
"attr._make.attrs",
"attr._make.wrap",
"attr._next_gen.define",
... | {
"new_api_in_tests": [],
"new_api_unstated": [],
"underspecified": false,
"f2p_count": 14,
"patch_lines": 94,
"files_changed": 2,
"statement_chars": 3233
} | 2022-07-09T05:28:19 | false | |
attrs_1529 | python-attrs/attrs | 3a68d4913221abc6f8ad3be50937f7ae49300a98 | diff --git a/changelog.d/1529.change.md b/changelog.d/1529.change.md
new file mode 100644
index 0000000..531e1d9
--- /dev/null
+++ b/changelog.d/1529.change.md
@@ -0,0 +1 @@
+It's now possible to pass *attrs* **instances** in addition to *attrs* **classes** to `attrs.fields()`.
diff --git a/docs/api.rst b/docs/api.rst
... | diff --git a/tests/test_make.py b/tests/test_make.py
index 6430195..6f226c6 100644
--- a/tests/test_make.py
+++ b/tests/test_make.py
@@ -1550,12 +1550,19 @@ class TestFields:
@given(simple_classes())
def test_instance(self, C):
"""
- Raises `TypeError` on non-classes.
+ Returns the clas... | Allow attrs class object as input of attrs.fields
Unless I am mistaken, one cannot use `attrs.fields` on a attrs class object, unlike `attrs.has`. The workaround is simple, either `attrs.fields(type(obj))` or `obj.__attrs_attrs__`. It would be nice to be able to use `attrs.fields` directly.
```python
@attrs.define
cl... | 2026-03-14T15:19:23 | [
"tests.test_make.TestFields::test_handler_non_attrs_instance",
"tests.test_make.TestFields::test_instance"
] | [
"tests.test_make.TestAttributes::test_adds_all_by_default[__eq__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__hash__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__init__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__repr__]",
"tests.test_make.TestAttribute... | [] | [] | [
"tests.test_make.TestMatchArgs::test_match_args"
] | true | false | core | issue | [
"https://github.com/python-attrs/attrs/issues/1400"
] | https://github.com/python-attrs/attrs/pull/1529 | 48b8611c27779811d161200e17de8da24aae7feb | 2026-03-14T17:54:04 | graphs/attrs_3a68d4913221abc6f8ad3be50937f7ae49300a98.json | embeddings/attrs_3a68d4913221abc6f8ad3be50937f7ae49300a98.npz | snapshots/attrs_1529.tgz | [
"tests/test_make.py",
"tests/test_mypy.yml"
] | [
"changelog.d/1529.change.md",
"docs/api.rst",
"src/attr/__init__.pyi",
"src/attr/_make.py"
] | [
"cloudpickle==3.1.2",
"execnet==2.1.2",
"hypothesis==6.170.8",
"iniconfig==2.3.1",
"packaging==26.3",
"pluggy==1.7.0",
"psutil==7.2.2",
"pygments==2.21.0",
"pympler==1.1",
"pytest-xdist==3.8.0",
"pytest==9.1.1",
"sortedcontainers==2.4.0"
] | [
"editables",
"hatch-fancy-pypi-readme>=23.2.0",
"hatch-vcs",
"hatchling"
] | {
"files": [
"src/attr/_make.py"
],
"nodes_edited": [
"attr._make.fields"
],
"nodes_added": [],
"module_level": [],
"aux_files": []
} | {
"new_api_in_tests": [],
"new_api_unstated": [],
"underspecified": false,
"f2p_count": 2,
"patch_lines": 14,
"files_changed": 1,
"statement_chars": 564
} | 2025-01-30T09:19:50 | false | |
attrs_1541 | python-attrs/attrs | 57b314c0dc8e0b80c0ed8f61c0be81965137ea41 | diff --git a/changelog.d/240.change.md b/changelog.d/240.change.md
new file mode 100644
index 0000000..2952221
--- /dev/null
+++ b/changelog.d/240.change.md
@@ -0,0 +1 @@
+Converters can now be provided as a decorator to the field.
diff --git a/docs/init.md b/docs/init.md
index e4bb78e..d6ec01b 100644
--- a/docs/init.m... | diff --git a/tests/test_make.py b/tests/test_make.py
index 6f226c6..f83f852 100644
--- a/tests/test_make.py
+++ b/tests/test_make.py
@@ -136,6 +136,43 @@ class TestCountingAttr:
assert _AndValidator((v, v2)) == a._validator
+ def test_converter_decorator_single(self):
+ """
+ If _CountingA... | Add decorator for convert
One can have `@validator` and `@default` but no `@convert`. Is this an oversight or by intention? If it's just an oversight, I'd be happy to send a PR for it. | 2026-04-13T11:22:22 | [
"tests.test_make.TestConverter::test_converter_decorated",
"tests.test_make.TestCountingAttr::test_converter_decorator[<lambda>0]",
"tests.test_make.TestCountingAttr::test_converter_decorator[<lambda>1]",
"tests.test_make.TestCountingAttr::test_converter_decorator[pipe]",
"tests.test_make.TestCountingAttr::... | [
"tests.test_make.TestAttributes::test_adds_all_by_default[__eq__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__hash__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__init__]",
"tests.test_make.TestAttributes::test_adds_all_by_default[__repr__]",
"tests.test_make.TestAttribute... | [] | [] | [
"tests.test_make.TestMatchArgs::test_match_args"
] | true | false | core | issue | [
"https://github.com/python-attrs/attrs/issues/240"
] | https://github.com/python-attrs/attrs/pull/1541 | 0f758fe54a8742110f730ebbaf146e79f3937c8d | 2026-04-16T20:23:19 | graphs/attrs_57b314c0dc8e0b80c0ed8f61c0be81965137ea41.json | embeddings/attrs_57b314c0dc8e0b80c0ed8f61c0be81965137ea41.npz | snapshots/attrs_1541.tgz | [
"tests/test_make.py",
"tests/test_mypy.yml"
] | [
"changelog.d/240.change.md",
"docs/init.md",
"src/attr/_make.py"
] | [
"cloudpickle==3.1.2",
"execnet==2.1.2",
"hypothesis==6.170.8",
"iniconfig==2.3.1",
"packaging==26.3",
"pluggy==1.7.0",
"psutil==7.2.2",
"pygments==2.21.0",
"pympler==1.1",
"pytest-xdist==3.8.0",
"pytest==9.1.1",
"sortedcontainers==2.4.0"
] | [
"editables",
"hatch-fancy-pypi-readme>=23.2.0",
"hatch-vcs",
"hatchling"
] | {
"files": [
"src/attr/_make.py"
],
"nodes_edited": [
"attr._make.Attribute.from_counting_attr",
"attr._make._CountingAttr",
"attr._make._CountingAttr.__init__",
"attr._make._CountingAttr.default"
],
"nodes_added": [
"attr._make._CountingAttr.converter"
],
"module_level": [
"sr... | {
"new_api_in_tests": [
"converter"
],
"new_api_unstated": [
"converter"
],
"underspecified": true,
"f2p_count": 5,
"patch_lines": 39,
"files_changed": 1,
"statement_chars": 184
} | 2017-09-01T11:03:15 | false | |
attrs_1593 | python-attrs/attrs | 6851ab593cd25f3c14393e9355d57d22bec2a074 | diff --git a/changelog.d/1593.change.md b/changelog.d/1593.change.md
new file mode 100644
index 0000000..d3fd8eb
--- /dev/null
+++ b/changelog.d/1593.change.md
@@ -0,0 +1 @@
+Unimported `typing.ClassVar` annotations created as forward references are now detected as class variables.
diff --git a/src/attr/_make.py b/src/... | diff --git a/tests/test_annotations.py b/tests/test_annotations.py
index e193d4b..de3d105 100644
--- a/tests/test_annotations.py
+++ b/tests/test_annotations.py
@@ -434,6 +434,23 @@ class TestAnnotations:
assert_init_annotations(C)
+ @pytest.mark.skipif(
+ sys.version_info[:2] < (3, 14),
+ ... | attrs doesn't recognize ClassVar if not imported in Python 3.14
The following code
```python
from typing import TYPE_CHECKING
import attrs
if TYPE_CHECKING:
from typing import ClassVar
@attrs.define
class T:
t: ClassVar[str]
T()
```
results in:
```python
Traceback (most recent call last):
File "/tmp/tes... | 2026-07-19T07:10:31 | [
"tests.test_annotations::test_is_class_var[annot4]"
] | [
"tests.test_annotations.TestAnnotations::test_annotations_strings[False]",
"tests.test_annotations.TestAnnotations::test_annotations_strings[True]",
"tests.test_annotations.TestAnnotations::test_auto_attribs[False]",
"tests.test_annotations.TestAnnotations::test_auto_attribs[True]",
"tests.test_annotations.... | [] | [] | [] | true | false | core | issue | [
"https://github.com/python-attrs/attrs/issues/1575"
] | https://github.com/python-attrs/attrs/pull/1593 | 97f8d175656bc03c373a1c9038048a4d312c307c | 2026-07-31T13:30:57 | graphs/attrs_6851ab593cd25f3c14393e9355d57d22bec2a074.json | embeddings/attrs_6851ab593cd25f3c14393e9355d57d22bec2a074.npz | snapshots/attrs_1593.tgz | [
"tests/test_annotations.py"
] | [
"changelog.d/1593.change.md",
"src/attr/_make.py"
] | [
"cloudpickle==3.1.2",
"execnet==2.1.2",
"hypothesis==6.170.8",
"iniconfig==2.3.1",
"packaging==26.3",
"pluggy==1.7.0",
"psutil==7.2.2",
"pygments==2.21.0",
"pympler==1.1",
"pytest-xdist==3.8.0",
"pytest==9.1.1",
"sortedcontainers==2.4.0"
] | [
"editables",
"hatch-fancy-pypi-readme>=23.2.0",
"hatch-vcs",
"hatchling"
] | {
"files": [
"src/attr/_make.py"
],
"nodes_edited": [
"attr._make._is_class_var"
],
"nodes_added": [],
"module_level": [],
"aux_files": []
} | {
"new_api_in_tests": [],
"new_api_unstated": [],
"underspecified": false,
"f2p_count": 1,
"patch_lines": 2,
"files_changed": 1,
"statement_chars": 1388
} | 2026-06-28T23:45:08 | true | |
boltons_440 | mahmoud/boltons | efff866a3b66fdafc817894390742e1d8bc025e5 | "diff --git a/boltons/listutils.py b/boltons/listutils.py\nindex d05d09d..9fbb4d6 100644\n--- a/bolt(...TRUNCATED) | "diff --git a/tests/test_listutils.py b/tests/test_listutils.py\nindex 66906ba..d7f0749 100644\n--- (...TRUNCATED) | "IndexedSet: difference_update/intersection_update are quadratic for large removals\n## Summary\n\n`(...TRUNCATED) | 2026-07-29T11:01:20 | ["tests.test_listutils::test_barrel_list_getitem_past_end","tests.test_listutils::test_barrel_list_i(...TRUNCATED) | ["tests.test_listutils::test_barrel_list","tests.test_listutils::test_barrel_list_insert_before_star(...TRUNCATED) | [] | [] | [] | true | false | core | issue | [
"https://github.com/mahmoud/boltons/issues/439"
] | https://github.com/mahmoud/boltons/pull/440 | e00c10a809525027b8167fbb7ac233cfc25a01f5 | 2026-09-07T09:01:02 | graphs/boltons_efff866a3b66fdafc817894390742e1d8bc025e5.json | embeddings/boltons_efff866a3b66fdafc817894390742e1d8bc025e5.npz | snapshots/boltons_440.tgz | [
"tests/test_listutils.py",
"tests/test_setutils.py"
] | [
"boltons/listutils.py",
"boltons/setutils.py"
] | [
"iniconfig==2.3.1",
"packaging==26.3",
"pluggy==1.7.0",
"pygments==2.21.0",
"pytest==9.1.1"
] | [
"flit_core >=3.2,<4"
] | {"files":["boltons/listutils.py","boltons/setutils.py"],"nodes_edited":["boltons.listutils.BarrelLis(...TRUNCATED) | {"new_api_in_tests":[],"new_api_unstated":[],"underspecified":false,"f2p_count":3,"patch_lines":39,"(...TRUNCATED) | 2026-07-29T10:49:41 | true | |
boltons_441 | mahmoud/boltons | 8789df2cc35a4d9ddfebfa59c14f3e80e34234e1 | "diff --git a/boltons/timeutils.py b/boltons/timeutils.py\nindex 49eaad6..e0c73bc 100644\n--- a/bolt(...TRUNCATED) | "diff --git a/tests/test_timeutils.py b/tests/test_timeutils.py\nindex ae80683..0e383e5 100644\n--- (...TRUNCATED) | "Time zones don't support fold\nThe `LocalTZInfo` and `USTimeZone` functions do not support the PEP4(...TRUNCATED) | 2026-08-02T13:07:49 | ["tests.test_timeutils::test_us_timezone_dst_fold","tests.test_timeutils::test_us_timezone_fromutc_s(...TRUNCATED) | ["tests.test_timeutils::test_daterange_datetime_hourly","tests.test_timeutils::test_daterange_infini(...TRUNCATED) | [] | [] | [] | true | false | core | issue_ref | [
"https://github.com/mahmoud/boltons/issues/141"
] | https://github.com/mahmoud/boltons/pull/441 | 19bd337cad0760945dfe0245434d8253156ee390 | 2026-09-07T08:59:41 | graphs/boltons_8789df2cc35a4d9ddfebfa59c14f3e80e34234e1.json | embeddings/boltons_8789df2cc35a4d9ddfebfa59c14f3e80e34234e1.npz | snapshots/boltons_441.tgz | [
"tests/test_timeutils.py"
] | [
"boltons/timeutils.py"
] | [
"iniconfig==2.3.1",
"packaging==26.3",
"pluggy==1.7.0",
"pygments==2.21.0",
"pytest==9.1.1"
] | [
"flit_core >=3.2,<4"
] | {"files":["boltons/timeutils.py"],"nodes_edited":["boltons.timeutils.USTimeZone","boltons.timeutils.(...TRUNCATED) | {"new_api_in_tests":[],"new_api_unstated":[],"underspecified":false,"f2p_count":2,"patch_lines":48,"(...TRUNCATED) | 2017-09-17T16:41:01 | false | |
boltons_445 | mahmoud/boltons | 78e8638e695d78ccc2dc641ef87e38fa51185840 | "diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex bf90900..0bc12ec 100644\n--- a/CHANGELOG.md\n+++ b/(...TRUNCATED) | "diff --git a/tests/test_funcutils_fb_py3.py b/tests/test_funcutils_fb_py3.py\nindex 5297f8b..9eb162(...TRUNCATED) | "Python `funcutils.wraps` breaks when keyword only arguments involved\n\r\nCode worth 1000 words:\r\(...TRUNCATED) | 2026-08-07T18:46:04 | ["tests.test_funcutils_fb_py3::test_wraps_target_kwonly_arg_no_default","tests.test_funcutils_fb_py3(...TRUNCATED) | ["tests.test_funcutils_fb_py3::test_FunctionBuilder_add_arg_kwonly","tests.test_funcutils_fb_py3::te(...TRUNCATED) | [] | [] | [] | true | false | core | issue | [
"https://github.com/mahmoud/boltons/issues/261"
] | https://github.com/mahmoud/boltons/pull/445 | b5c495bec206741ec25cd82ecc869e0b59bb0d10 | 2026-08-07T21:10:06 | graphs/boltons_78e8638e695d78ccc2dc641ef87e38fa51185840.json | embeddings/boltons_78e8638e695d78ccc2dc641ef87e38fa51185840.npz | snapshots/boltons_445.tgz | [
"tests/test_funcutils_fb_py3.py"
] | [
"CHANGELOG.md",
"boltons/funcutils.py"
] | [
"iniconfig==2.3.1",
"packaging==26.3",
"pluggy==1.7.0",
"pygments==2.21.0",
"pytest==9.1.1"
] | [
"flit_core >=3.2,<4"
] | {"files":["boltons/funcutils.py"],"nodes_edited":["boltons.funcutils.FunctionBuilder.get_invocation_(...TRUNCATED) | {"new_api_in_tests":[],"new_api_unstated":[],"underspecified":false,"f2p_count":2,"patch_lines":25,"(...TRUNCATED) | 2020-07-07T22:34:33 | false |
Berth: harness-compatible, post-cutoff Python tasks for offline Gemma 4 coding agents
Berth is a set of 653 verified bug-fix and feature tasks from 24 permissively licensed Python libraries. Every task is
packaged in the data layout of the Gemma 4 Developer Agent Competition
harness and installs and tests with no network. The layout covers tasks.jsonl columns, history-free repository
snapshots, and code graphs in the official format.
It is meant as held-out validation and as a training pool for agents built for that harness. The competition's public development set has 129 tasks from 4 repositories.
| Split | Tasks | Pass the official grader | Statement | Use |
|---|---|---|---|---|
core |
301 | 281 | real GitHub issue | evaluation |
extended |
350 | 297 | pull-request description | training |
overlap |
2 | 2 | real issue | also in SWE-rebench; kept apart |
Recommended headline subset: core tasks with harness_compatible == true and post_cutoff == true (209 tasks).
In these, both the issue and the pull request postdate Gemma 4's January 2025 pretraining cutoff, and the task passes the
competition's own grading rules.
How every task was checked
- Fail before, pass after: in a fresh Python 3.13 environment, tests touched by the fix fail without it and pass with it, identically in two runs.
- Offline: inside a network-less namespace, the environment installs only from
wheels/; the empty patch failsFAIL_TO_PASSand the gold patch passes. - Stable: three more gold replays through an agent runner's tools and grader, under parallel load.
- Official grader (
harness_compatible): the harness's own Phase 2 sequence is reproduced offline, withsetup_workspace_test_configand_validate_junit_xmlimported from the competition'sswegemmawheel. The whole target test files must pass with-p no:anyio, and required tests are matched by name prefix. The gold patch must resolve and the empty patch must not.
Tasks failing step 4 are kept and flagged. Most use async test suites, which the official grader cannot run. To
satisfy the official validator's prefix matching, some test ids were removed; they are listed per task in
FAIL_TO_PASS_dropped_validator and PASS_TO_PASS_dropped_validator, and every task keeps at least one
FAIL_TO_PASS test. For 33 tasks, dependencies were resolved as of the fix commit's date
(env_pinned_to_commit_date).
Files
| Path | Content |
|---|---|
tasks.jsonl (+ core/extended/overlap.jsonl) |
One task per line (fields below) |
snapshots/<instance_id>.tgz |
Repository at base_commit as a fresh one-commit git repo (no forward history) |
graphs/<repo>_<commit>.json |
Code graph, official node-link format (built with an Apache-2.0 builder that reproduces all 127 official graphs) |
embeddings/<repo>_<commit>.npz |
256-d stand-in vectors (deterministic random; the official encoder is unpublished) |
wheels/ |
Every wheel any task needs, CPython 3.13 / manylinux x86_64 |
runs/gemma-4-31b-it-qat-w4a16-ct/ |
Reference-agent trajectories (.traj.jsonl), our grading (.json), official grading (.official.json) |
results/ |
Localization baseline per task; every number in the paper (paper_numbers.json) |
Task fields
Official columns: instance_id, repo, base_commit, patch, test_patch, problem_statement, hints_text, created_at, FAIL_TO_PASS, PASS_TO_PASS.
Berth fields:
split,statement_source(issue/issue_ref/pr),issue_urls,pr_url,fix_commit,merged_at,issue_created_atpost_cutoff: issue and PR both created on or after 2025-02-01harness_compatible,env_pinned_to_commit_datePASS_TO_PASS_flaky,FAIL_TO_PASS_dropped_validator,PASS_TO_PASS_dropped_validatorlocalization:files,nodes_editedandnodes_added(official graph node ids),module_level,aux_filesquality:underspecified(the hidden tests call a name the fix introduces and the issue never mentions),new_api_in_tests,f2p_count,patch_lines,files_changed,statement_charsrequirements,build_requires,graph,embeddings,snapshot,test_patch_files,patch_files
Baselines (core)
- Localization (292 tasks whose fix edits a function or class). BM25 puts a gold function in its top 10 for 64.0% of tasks, against 9.9% for random. Graph propagation trades top-1 function accuracy (−6.9 points) for top-1 file accuracy (+6.5).
- Gemma 4 31B (
gemma-4-31b-it-qat-w4a16-cton Kaggle 4×L4, simple single agent, 20-minute budget, official grading): 19.6% of the 281 compatible tasks, and 22.0% of the 209 post-cutoff ones. In 59% of failures the patch touched none of the files the real fix changes.
Licence
Each snapshot keeps the licence of its source repository (MIT, BSD or Apache-2.0; see LICENSES/). Berth's
annotations, results and pipeline code are released under Apache-2.0. Pipeline code:
https://github.com/JayPatel2574/berth
Citation
Jay Patel. Berth: Harness-Compatible, Post-Cutoff Python Tasks for Offline Gemma 4 Coding Agents. Gemma 4 Developer Agent Paper Track, Kaggle, 2026.
- Downloads last month
- 471