From c545ef2823c88415ec9e86963a2817e63a5fd783 Mon Sep 17 00:00:00 2001 From: Leon Zhao Date: Sun, 5 Jan 2025 16:27:52 +0800 Subject: [PATCH] fix: builtin bytes type missing --- pyo3-stub-gen/src/stub_type/builtins.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pyo3-stub-gen/src/stub_type/builtins.rs b/pyo3-stub-gen/src/stub_type/builtins.rs index 784d74e..991ee28 100644 --- a/pyo3-stub-gen/src/stub_type/builtins.rs +++ b/pyo3-stub-gen/src/stub_type/builtins.rs @@ -59,6 +59,7 @@ impl_builtin!(String, "str"); impl_builtin!(OsString, "str"); impl_builtin!(Cow<'_, str>, "str"); impl_builtin!(Cow<'_, OsStr>, "str"); +impl_builtin!(Cow<'_, [u8]>, "bytes"); impl PyStubType for PathBuf { fn type_output() -> TypeInfo {