Jij-Inc / pyo3-stub-gen

Stub file (*.pyi) generator for PyO3
Apache License 2.0
61 stars 12 forks source link

Add &[u8] as bytes #84

Open Tristramg opened 2 months ago

Tristramg commented 2 months ago

As defined in https://pyo3.rs/v0.22.2/conversions/tables#argument-types, &[u8] are mapped to "bytes"

I tried also to add Vec<u8> and Cow<u8>, however it conflicted with the definitions in collections.rs and I’m not sure what would be the right approach to it.