Skip to content

Represent out-of-order table proxies with merged values#536

Open
gaoflow wants to merge 1 commit into
python-poetry:masterfrom
gaoflow:fix-439-out-of-order-repr
Open

Represent out-of-order table proxies with merged values#536
gaoflow wants to merge 1 commit into
python-poetry:masterfrom
gaoflow:fix-439-out-of-order-repr

Conversation

@gaoflow

@gaoflow gaoflow commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Fixes #439.

Summary

  • make OutOfOrderTableProxy string/repr output use the merged internal container value
  • add a regression test for two dotted-key fragments under the same out-of-order proxy

Verification

  • uv run --no-project --with pytest --with pyyaml python -m pytest tests/test_toml_document.py::test_repr_out_of_order_table_proxy tests/test_toml_document.py::test_repr tests/test_toml_document.py::test_out_of_order_tables_are_still_dicts -q
  • uv run --no-project --with pytest --with pyyaml python -m pytest -q
  • uv run --no-project --with ruff ruff check tomlkit/container.py tests/test_toml_document.py
  • uv run --no-project --with ruff ruff format --check tomlkit/container.py tests/test_toml_document.py
  • python -m compileall tomlkit/container.py tests/test_toml_document.py
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing keys in repro of tomlkit.container.OutOfOrderTableProxy

1 participant