You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix TOML comment stripping in extend_list and remove_from_list (#1591)
* Initial plan
* Fix TOML comment stripping in extend_list and remove_from_list
Use in-place append/remove on tomlkit Array objects instead of
creating plain Python lists, which strips comments and formatting.
Fixes#884
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/032e12ce-4fc2-4e64-87e1-f3914b7fcf59
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
* Use insert() instead of append() to satisfy basedpyright type checker
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/032e12ce-4fc2-4e64-87e1-f3914b7fcf59
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
* Fix TestAddAuthor.test_append: unwrap tomlkit Array to plain dicts in add_author
The in-place Array modification in extend_list now preserves the
tomlkit Array type. The add_author delete/re-set dance needs plain
Python dicts to trigger tomlkit's format conversion to [[project.authors]].
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/6a19efab-dd8b-4ba2-ae5e-1f9670293228
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
* Fix static check failures: ty type error in author.py and AGENTS.md table alignment
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/109d7daa-f84f-425a-b82b-ebb5e8491acf
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Co-authored-by: Nathan McDougall <nathan.j.mcdougall@gmail.com>
0 commit comments