Sourced from tomli's changelog.
2.0.2
- Removed
- Python 3.7 support
- Improved
- Make
loads
raiseTypeError
notAttributeError
on bad input types that do not have thereplace
attribute. Improve error message whenbytes
is received.- Type annotations
- Type annotate
load
input astyping.IO[bytes]
(previouslytyping.BinaryIO
).2.0.1
- Improved
- Make bundling easier by using relative imports internally and adding license and copyright notice to source files.
- Make error messages more uniform
- Raise a friendly
TypeError
for wrong file mode- Allow
parse_float
to return objects having theappend
attr- Eagerly raise an error if
parse_float
returns an illegal type- Packaging
- Move from
pytest
testing framework tounittest
and removepython-dateutil
test dependency. Tests now only require Python interpreter.1.2.3
- Fixed
- Backport: Allow lower case "t" and "z" in datetimes
2.0.0
- Removed
- Python 3.6 support
- Support for text file objects as
load
input. Use binary file objects instead.- First argument of
load
andloads
can no longer be passed by keyword.- Fixed
- Allow lower case "t" and "z" in datetimes
- Improved
- Raise an error when dotted keys define values outside the "current table". Technically speaking TOML v1.0.0 does allow such assignments but that isn't intended by specification writers, and will change in a future specification version (see the pull request).
1.2.2
- Fixed
- Illegal characters in error messages were surrounded by two pairs of quotation marks
- Improved
TOMLDecodeError.__module__
is now the public import path (tomli
) instead of private import path (tomli._parser
)- Eliminated an import cycle when
typing.TYPE_CHECKING
isTrue
. This allowssphinx-autodoc-typehints
to resolve type annotations.
... (truncated)
3ec6775
Bump version: 2.0.1 → 2.0.21dcd317
Add v2.0.2 changelogc94ee69
Fix GitHub Actions badge4e245a4
tomli.loads
: Raise TypeError not AttributeError. Improve
message (#229)facdab0
Update pre-commit. Remove docformattera613867
Use sys.version_info in compatibility layer (#220)39eff9b
Add support for Python 3.12, drop EOL 3.7 (#224)0054e60
[pre-commit.ci] pre-commit autoupdate (#208)1bd3345
Test against Python 3.12-dev5646e69
Type annotate as IO[bytes]
, not BinaryIO