Skip to content

Commit adbd6a3

Browse files
authored
Release 2.4 (#189)
1 parent 60728d3 commit adbd6a3

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
Version 2.4 (Nov 21, 2023)
5+
--------------------------
6+
Changes:
7+
- ✨ Added `--numpy-array-use-type-var` flag which reformats the pybind11-generated `numpy.ndarray[numpy.float32[m, 1]]`
8+
annotation as `numpy.ndarray[tuple[M, Literal[1]], numpy.dtype[numpy.float32]]` contributed by @ringohoffman (#188)
9+
10+
411
Version 2.3.7 (Nov 18, 2023)
512
--------------------------
613
Changes:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pybind11-stubgen [-h]
3030
[--ignore-all-errors]
3131
[--enum-class-locations REGEX:LOC]
3232
[--numpy-array-wrap-with-annotated|
33+
--numpy-array-use-type-var|
3334
--numpy-array-remove-parameters]
3435
[--print-invalid-expressions-as-is]
3536
[--print-safe-value-reprs REGEX]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
maintainer_email="[email protected]",
77
description="PEP 561 type stubs generator for pybind11 modules",
88
url="https://github.com/sizmailov/pybind11-stubgen",
9-
version="2.3.7",
9+
version="2.4",
1010
long_description=open("README.md").read(),
1111
long_description_content_type="text/markdown",
1212
license="BSD",

0 commit comments

Comments
 (0)