We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c96ce2 commit c6712a2Copy full SHA for c6712a2
tests/test_base.py
@@ -67,7 +67,7 @@ def test_exclude_if_none_subclass() -> None:
67
# Create a subclass that adds a field, and ensure it works.
68
class TestClass(_GeoJsonBase):
69
test_field: str = None
70
- __exclude_if_none__: Set[str] = {"bbox", "test_field"}
+ __geojson_exclude_if_none__: Set[str] = {"bbox", "test_field"}
71
72
assert TestClass().model_dump_json() == "{}"
73
assert TestClass(test_field="a").model_dump_json() == '{"test_field":"a"}'
0 commit comments