From d91103f10a14e138a169fe786869c10e94548085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristram=20Gr=C3=A4bener?= Date: Thu, 19 Sep 2024 16:09:46 +0200 Subject: [PATCH] Add &[u8] as bytes --- pyo3-stub-gen/src/stub_type/builtins.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyo3-stub-gen/src/stub_type/builtins.rs b/pyo3-stub-gen/src/stub_type/builtins.rs index b0cc867..65e7bf7 100644 --- a/pyo3-stub-gen/src/stub_type/builtins.rs +++ b/pyo3-stub-gen/src/stub_type/builtins.rs @@ -47,6 +47,8 @@ impl_builtin!(OsString, "str"); impl_builtin!(Cow<'_, str>, "str"); impl_builtin!(Cow<'_, OsStr>, "str"); +impl_builtin!(&[u8], "bytes"); + impl PyStubType for PathBuf { fn type_output() -> TypeInfo { TypeInfo::builtin("str")