Comments (10)
Ok, I forgot about case-sensitivity. 😞
from pybind11-stubgen.
@ax3l I can add v2.11
branch to CI if it's what you are asking for.
from pybind11-stubgen.
CI tests against pybind11's master
branch, which has capitalized Buffer
in docstrings.
I should probably include older pybind11
version to CI :(
from pybind11-stubgen.
I forgot to make GitHub release, which creates a tag which triggers upload to PyPI.
So v2.3.5 was on gihub, but not in PyPI
from pybind11-stubgen.
Maybe you use a dated version. Tests cover this.
from pybind11-stubgen.
That's weird, because I updated our pybind11 recently (but we use smart_holder)... which has b4573674bc65a7842b49be45d63b582f4c15d1b4 in it?
commit 7953d19a7c17ff1bfe0b7c4cdfde216d400d5f28 (HEAD -> 2024, origin/smart_holder)
Merge: 9110b766 2b2e4ca4
Author: Ralf W. Grosse-Kunstleve <[email protected]>
Date: Tue Oct 3 22:45:09 2023 -0700
Merge branch 'master' into sh_merge_master
...
commit b4573674bc65a7842b49be45d63b582f4c15d1b4
Author: Sergei Izmailov <[email protected]>
Date: Wed Sep 13 04:47:39 2023 +0900
Update render for buffer sequence and handle (#4831)
I see 2.3.4 failing at https://github.com/robotpy/robotpy-wpiutil/actions/runs/6609220896/job/17949256791#step:8:547
from pybind11-stubgen.
Ah, our span_caster outputs a lowercase buffer (https://github.com/robotpy/robotpy-wpiutil/blob/2dd9b691b7dc776fd266f04f4b83bef45dfdef23/wpiutil/src/type_casters/wpi_span_type_caster.h#L148)... but I suppose you should support either the older or newer version.
This is actually the third type caster related issue that I've ran into where the name was deceiving me. I don't think there's a way for stubgen to know if the type has a custom caster associated with it -- if it did, that would be really useful to output in the error message.
from pybind11-stubgen.
I don't think there's a way for stubgen
That's correct, stubgen is unaware of casters
from pybind11-stubgen.
Thank you all for the issue and quick response 👍
CI tests against pybind11's master branch, which has capitalized Buffer in docstrings.
I should probably include older pybind11 version to CI :(
@sizmailov Do you think it is easy to test in CI / support in stubgen the latest stable pybind11 release (besides master
)? :)
from pybind11-stubgen.
Thank you, that sounds great and was what I was thinking.
from pybind11-stubgen.
Related Issues (20)
- Failing to fully resolve classes? HOT 6
- Fully-qualified type name is not shortend in nested annotation
- Option to use TypeVars for numpy.ndarray's shape type argument HOT 2
- Using `KeysView`/`ValuesView`/`ItemsView` across sub modules can result in "can't find/import" error HOT 2
- Allow replacing `...` by `object` / `Any` / `Incomplete`? HOT 10
- Modify Enum keyword default from its __repr__ to its __str__ by default? HOT 2
- Missing wheels for newer releases HOT 2
- On using `pybind11_stubgen`-defined classes in generated stubs HOT 2
- Where to store the generated stubs? HOT 4
- KeyError: 'pop from an empty set' HOT 4
- Automatically replace invalid enum expressions with corresponding valid expression & import
- Make an interface for post-parser fixup
- Enum with custom `__str__` results in non-type-checkable stub
- Generic ItemsView, KeysView, ValuesView rendered with pybind11-master HOT 1
- Can't generate stubs for pybind11 shared object HOT 2
- Using Eigen::VectorXd results in numpy.ndarray[numpy.float64[m, 1]], Error: Can't find/import 'm' HOT 1
- Doc String for Overloaded Member Functions (Sphinx) HOT 1
- Ignore attribute value
- When parsing enums derived from `enum.Enum`, non-canonical values are ignored HOT 4
- compatable for `ModuleStubsGenerator` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pybind11-stubgen.