Comments (2)
pybind11-stubgen
doesn't know anything about actual underlying types, it just reads info from docstrings. I don't think there is a reliable way to handle it on stubgen side, other than monkey-patching docstrings on the fly.
from pybind11-stubgen.
I am not sure what I would patch this to - perhaps Any. I can probably modify the docstring in the pyd too.
Also, it seems like "buffer" shouldn't be in the docstring and I should take this up with the pybind11 group.
from pybind11-stubgen.
Related Issues (20)
- buffer type broken by #168 HOT 10
- submodule imports don't resolve HOT 5
- pybind11::dtype
- Option to translate pointers to `PointedType | None` HOT 1
- 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
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.