From 1dcd317c62e905655090f3e18f57c93860086904 Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Wed, 2 Oct 2024 13:41:44 +0300 Subject: [PATCH 1/2] Add v2.0.2 changelog --- CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba430cbc..b878e574 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,18 @@ # Changelog +## 2.0.2 + +- Removed + - Python 3.7 support +- Improved + - Make `loads` raise `TypeError` not `AttributeError` on bad input types that do not have the `replace` attribute. + Improve error message when `bytes` is received. +- Type annotations + - Type annotate `load` input as `typing.IO[bytes]` (previously `typing.BinaryIO`). + ## 2.0.1 -- Improve +- 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 From 3ec6775b118f2ae030d5b12c90939c7f65668e7e Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Wed, 2 Oct 2024 13:41:58 +0300 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=202.0.1=20=E2=86=92=202.0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- pyproject.toml | 2 +- src/tomli/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index b00d23aa..fe2f97f9 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -2,7 +2,7 @@ commit = True tag = True tag_name = {new_version} -current_version = 2.0.1 +current_version = 2.0.2 [bumpversion:file:pyproject.toml] search = version = "{current_version}" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT diff --git a/pyproject.toml b/pyproject.toml index 5f499887..e80688a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi" [project] name = "tomli" -version = "2.0.1" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT +version = "2.0.2" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT description = "A lil' TOML parser" authors = [ { name = "Taneli Hukkinen", email = "hukkin@users.noreply.github.com" }, diff --git a/src/tomli/__init__.py b/src/tomli/__init__.py index 4c6ec97e..bf2b131c 100644 --- a/src/tomli/__init__.py +++ b/src/tomli/__init__.py @@ -3,7 +3,7 @@ # Licensed to PSF under a Contributor Agreement. __all__ = ("loads", "load", "TOMLDecodeError") -__version__ = "2.0.1" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT +__version__ = "2.0.2" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT from ._parser import TOMLDecodeError, load, loads