From adbd6a335795b96227e78b3483cafb278f1c7a77 Mon Sep 17 00:00:00 2001 From: Sergei Izmailov Date: Tue, 21 Nov 2023 18:45:23 +0900 Subject: [PATCH] Release 2.4 (#189) --- CHANGELOG.md | 7 +++++++ README.md | 1 + setup.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e4eb49..d769c48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ Changelog ========= +Version 2.4 (Nov 21, 2023) +-------------------------- +Changes: +- ✨ Added `--numpy-array-use-type-var` flag which reformats the pybind11-generated `numpy.ndarray[numpy.float32[m, 1]]` +annotation as `numpy.ndarray[tuple[M, Literal[1]], numpy.dtype[numpy.float32]]` contributed by @ringohoffman (#188) + + Version 2.3.7 (Nov 18, 2023) -------------------------- Changes: diff --git a/README.md b/README.md index 445af5c..d0e106a 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ pybind11-stubgen [-h] [--ignore-all-errors] [--enum-class-locations REGEX:LOC] [--numpy-array-wrap-with-annotated| + --numpy-array-use-type-var| --numpy-array-remove-parameters] [--print-invalid-expressions-as-is] [--print-safe-value-reprs REGEX] diff --git a/setup.py b/setup.py index c0c0a12..2d83311 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ maintainer_email="sergei.a.izmailov@gmail.com", description="PEP 561 type stubs generator for pybind11 modules", url="https://github.com/sizmailov/pybind11-stubgen", - version="2.3.7", + version="2.4", long_description=open("README.md").read(), long_description_content_type="text/markdown", license="BSD",