One function

FeatureCollection in jazzband/geojson

The author described this change as fix: convert dict features to Feature objects in FeatureCollection (#242). It counts as a record because the check below fails on the code as it stood at caac49915 and passes on 34a269900, with nothing else changed between the two runs.

Fix saved2026-05-18
Sharing licenceBSD-3-Clause · LICENSE.rst
Change size+4 1

What the code was meant to do, written into the code itself as a docstring

Represents a FeatureCollection, a set of multiple Feature objects.

The change

1212 :rtype: FeatureCollection
1313 """
1414 super().__init__(**extra)
15- self["features"] = features
15+ self["features"] = [
16+ self.to_instance(f) if not isinstance(f, GeoJSON) else f
17+ for f in features
18+ ]
1619
1720 def errors(self):
1821 return self.check_list_errors(lambda x: x.errors(), self.features)

The check that tells the two apart

failpass·tests/test_feature_collection.py::FeatureCollectionsTest::test_to_instance_converts_nested_features

Check file tests/test_feature_collection.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before itcaac4991519f070e04969f5199a4676709aa43e1
Broken version dated2026-05-14
Modulegeojson.feature
Units changedFeatureCollection
Fingerprintfeb4d2116ab3e833
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in jazzband/geojson