Giter Site home page Giter Site logo

Comments (10)

sizmailov avatar sizmailov commented on June 10, 2024 2

Ok, I forgot about case-sensitivity. 😞

from pybind11-stubgen.

sizmailov avatar sizmailov commented on June 10, 2024 2

@ax3l I can add v2.11 branch to CI if it's what you are asking for.

from pybind11-stubgen.

sizmailov avatar sizmailov commented on June 10, 2024 1

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.

sizmailov avatar sizmailov commented on June 10, 2024 1

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.

sizmailov avatar sizmailov commented on June 10, 2024

Maybe you use a dated version. Tests cover this.

m.def("get_buffer", [](py::buffer &buffer) { return buffer; });

def get_buffer(arg0: typing_extensions.Buffer) -> typing_extensions.Buffer: ...

def get_buffer(arg0: typing_extensions.Buffer) -> typing_extensions.Buffer: ...

from pybind11-stubgen.

virtuald avatar virtuald commented on June 10, 2024

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.

virtuald avatar virtuald commented on June 10, 2024

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.

sizmailov avatar sizmailov commented on June 10, 2024

I don't think there's a way for stubgen

That's correct, stubgen is unaware of casters

from pybind11-stubgen.

ax3l avatar ax3l commented on June 10, 2024

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.

ax3l avatar ax3l commented on June 10, 2024

Thank you, that sounds great and was what I was thinking.

from pybind11-stubgen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.