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 and loads 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 is True.
This allows sphinx-autodoc-typehints to resolve type annotations.
1.2.1
Fixed
Raise an error if a carriage return (without a following line feed) is found in a multi-line basic string
Type annotations
Type annotate load input as typing.BinaryIO only to discourage use of deprecated text file objects.
Packaging
Remove legacy setup.py from PyPI source distribution.
If you're a packager and absolutely need this file, please create an issue.
1.2.0
Deprecated
Text file objects as input to load.
Binary file objects should be used instead to avoid opening a TOML file with universal newlines or with an encoding other than UTF-8.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps tomli from 1.2.3 to 2.0.0.
Changelog
Sourced from tomli's changelog.
... (truncated)
Commits
97b61d5
Bump version: 1.2.2 → 2.0.0e4f44e3
Allow lower case "t" and "z" in datetimes (#149)77dce70
Dont hardcode module name (#145)374364a
Make first arg ofload
andloads
positional only (#143)9e56735
Error when dotted keys define values outside current table (#125)486c156
Remove text file object support (#133)6a93a19
Drop Python 3.6 support (#134)809a8ae
Slightly speed up execution time of common cases (#142)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)