sizmailov / pybind11-stubgen

Generate stubs for python modules
Other
232 stars 47 forks source link

Add fixed size #99

Closed cielavenir closed 1 year ago

cielavenir commented 1 year ago

https://github.com/pybind/pybind11/pull/4679 updated and #97 is insufficient now, sorry for the inconvenience

/cc @felixvd

cielavenir commented 1 year ago

hm

@sizmailov can we detect if certain class is used (like Annotated)? Otherwise we need to change all test source files.

sizmailov commented 1 year ago

IMO, the better option would be to create a package (e.g. pybind11_stubgen_typing_ext) and put FixedSize there and naturally apply the same replacement procedure we already use for typing types.

sizmailov commented 1 year ago

I'll handle this at the weekend.