commit | 5b635df3b0504edb84ce0baba0677ed4867e3c71 | [log] [tgz] |
---|---|---|
author | Mathieu Lemay <23462228+mathieu-lemay@users.noreply.github.com> | Mon Nov 11 22:34:39 2024 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Nov 12 12:43:41 2024 -0800 |
tree | fd706682e63de4e1f6e164dc8897bf14a1dd9df2 | |
parent | 935150be9d41f0e87c0544dff09e75df1986cbbf [diff] |
fix: register encoder's doc incorrectly mentions TypeError (#384) Since #358, custom encoders are expected to raise a ConvertError instead of a TypeError, but the docstring of register_encoder still mentions TypeError. Fix this to mention ConvertError instead. GitOrigin-RevId: 2777bedb901e11064b4405d9f32c11af7ae54d24 Change-Id: I4c92a6f9e683495cf04e54e94a67d064947457a2
TOML Kit is a 1.0.0-compliant TOML library.
It includes a parser that preserves all comments, indentations, whitespace and internal element ordering, and makes them accessible and editable via an intuitive API.
You can also create new TOML documents from scratch using the provided helpers.
Part of the implementation has been adapted, improved and fixed from Molten.
See the documentation for more information.
If you are using Poetry, add tomlkit
to your pyproject.toml
file by using:
poetry add tomlkit
If not, you can use pip
:
pip install tomlkit
Please clone the repo with submodules with the following command git clone --recurse-submodules https://github.com/sdispater/tomlkit.git
. We need the submodule - toml-test
for running the tests.
You can run the tests with poetry run pytest -q tests