Skip to content

Commit

Permalink
fix: Multiple enum locations (#158)
Browse files Browse the repository at this point in the history
Fixes #157
  • Loading branch information
sizmailov authored Sep 27, 2023
1 parent 16521f8 commit b8decd4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

Version 2.3 (Sep 27, 2023)
--------------------------
Changes:
- 🐛 fix: Inconsistent `--enum-class-locations` behaviour (#158)


Version 2.2.2 (Sep 26, 2023)
--------------------------
Changes:
Expand All @@ -12,6 +18,7 @@ Version 2.2.1 (Sep 23, 2023)
Changes:
- 📝 Update `--print-invalid-expressions-as-is` description


Version 2.2 (Sep 20, 2023)
--------------------------
Changes:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pybind11-stubgen [-h]
[--ignore-invalid-identifiers REGEX]
[--ignore-unresolved-names REGEX]
[--ignore-all-errors]
[--enum-class-locations [REGEX:LOC ...]]
[--enum-class-locations REGEX:LOC]
[--numpy-array-wrap-with-annotated|
--numpy-array-remove-parameters]
[--print-invalid-expressions-as-is]
Expand Down
2 changes: 1 addition & 1 deletion pybind11_stubgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def regex_colon_path(regex_path: str) -> tuple[re.Pattern, str]:
"--enum-class-locations",
dest="enum_class_locations",
metavar="REGEX:LOC",
action="append",
default=[],
nargs="*",
type=regex_colon_path,
help="Locations of enum classes in "
"<enum-class-name-regex>:<path-to-class> format. "
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
maintainer_email="[email protected]",
description="PEP 561 type stubs generator for pybind11 modules",
url="https://github.com/sizmailov/pybind11-stubgen",
version="2.2.2",
version="2.3",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
license="BSD",
Expand Down

0 comments on commit b8decd4

Please sign in to comment.