pybind11-stubgen

Generate stubs for python modules

OTHER License

Downloads
94.9K
Stars
203
Committers
18

Bot releases are hidden (Show)

pybind11-stubgen - 2.5.1 Latest Release

Published by sizmailov 7 months ago

Changes:
🐛 Fixed: Missed numpy unsigned int types (#219) by @Yc7521

pybind11-stubgen - 2.5

Published by sizmailov 8 months ago

🐛 Fixed: Don't render pybind11 KeysView, ValuesView, ItemsView class definitions (#211)
🐛 Fixed: Escape backslashes in stub output (#208)
pybind11-stubgen - 2.4.2

Published by sizmailov 11 months ago

Changes:

  • 🔁 Revert #196 due to poor review
pybind11-stubgen - 2.4.1

Published by sizmailov 11 months ago

Version 2.4.1 (Nov 25, 2023)

Changes:

  • ✨ Automatically replace invalid enum expressions with corresponding valid expression & import (#196) contributed by @ringohoffman
  • 🐛 Fixed: do not remove self parameter annotation when types do not match (#195) contributed by @ringohoffman
pybind11-stubgen - v2.4

Published by sizmailov 11 months ago

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)
pybind11-stubgen - 2.3.7

Published by sizmailov 11 months ago

Changes:

  • 🐛 fix: Handle top-level list-like annotations as types (#183)
pybind11-stubgen - 2.3.6

Published by sizmailov 12 months ago

Changes:

  • 🐛 fix: Missing py::dtype translation (#179)
pybind11-stubgen - 2.3.5

Published by sizmailov 12 months ago

Changes:

  • 🐛 fix: Wrong import for lowercase buffer (#175), issue (#173)
pybind11-stubgen - 2.3.4

Published by sizmailov 12 months ago

Changes:

  • 🐛 fix: Misleading warning that referred to ignored errors (#171)
pybind11-stubgen - 2.3.3

Published by sizmailov 12 months ago

Changes:

  • 🐛 fix: The typing.Annotated does not exist in python < 3.9, use typing_extensions (#168)
pybind11-stubgen -

Published by sizmailov 12 months ago

Changes:

  • 🐛 fix: Crash on None-valued docstring of property getter (#161)
pybind11-stubgen - 2.3

Published by sizmailov about 1 year ago

Changes:

  • 🐛 fix: Inconsistent --enum-class-locations behaviour (#158)
pybind11-stubgen - 2.2.1

Published by sizmailov about 1 year ago

Changes:

  • 📝 Update --print-invalid-expressions-as-is description
pybind11-stubgen - 2.2

Published by sizmailov about 1 year ago

Changes:

  • 🐛 Fix: Python literals as default arg rendered as ... (#147)
  • ✨ Add --print-safe-value-reprs=REGEX CLI option to override the print-safe flag
    of Value (for custom default value representations provided via pybind11::arg_v()) (#147)
  • ✨ Add --enum-class-locations=REGEX:LOC CLI option to rewrite enum values as valid
    Python expressions with correct imports. (#147)

⚠️ This release detects more invalid expressions in bindings code. Previously, Enum-like representations (e.g., <MyEnum.Zero: 0>) were always treated as non-printable values and were rendered as .... The invalid expressions should be acknowledged by --enum-class-locations or --ignore-invalid-expressions.

pybind11-stubgen - 2.1

Published by sizmailov about 1 year ago

Changes:

  • ✨ Add --stub-extension CLI option (#142)
pybind11-stubgen - 2.0.2

Published by sizmailov about 1 year ago

Changes:

  • 🐛 Fix: missing isinstance check (#138)
pybind11-stubgen - 2.0.1

Published by sizmailov about 1 year ago

Changes:

  • 🐛 Fix: missing subdirectories for top-level submodules (#136)
pybind11-stubgen - 2.0

Published by sizmailov about 1 year ago

Changes:

  • 🐛 Explicitly set encoding of stubs to utf-8 (#133)
  • 🐛 Fix value representation for collections with print-unsafe elements (#132)
  • 🐛 Fix missing remap of numpy.ndarray.flags (#128)
  • ✨ Process scipy.sparse.* types the same as numpy.ndarray with --numpy-array-wrap-with-annotated (#128)
  • ✨ Support dynamic array size with --numpy-array-wrap-with-annotated (#128)
  • ❗️ Renamed CLI argument --numpy-array-wrap-with-annotated-fixed-size to --numpy-array-wrap-with-annotated (#128)
pybind11-stubgen - 2.0.dev1

Published by sizmailov about 1 year ago

Changes:

  • 🐛 Fix missing remap of numpy.ndarray.flags (#128)
  • ✨ Process scipy.sparse.* types the same as numpy.ndarray with --numpy-array-wrap-with-annotated (#128)
  • ✨ Support dynamic array size with --numpy-array-wrap-with-annotated (#128)
  • ❗️ Renamed CLI argument --numpy-array-wrap-with-annotated-fixed-size to --numpy-array-wrap-with-annotated (#128)
pybind11-stubgen - 1.2

Published by sizmailov about 1 year ago

Changes:

  • 🐛 Fix compatibility with Python 3.7..3.9 (#124)
  • 🐛 Fix incorrect list of base classes (#123)
  • ✨ Replace typing collections with builtin types (e.g. typing.List -> list) according
    to PEP 585 (#122)
  • ✨ Add missing translations of pybind types: function -> Callable, object/handle -> typing.Any (#121)
  • ✨ Support function-valued default arguments (#119)
  • 🐛 Fix missing properties docstrings (#118)