Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Jan 3, 2024
1 parent 15bfa9b commit a44f581
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion pyo3-stub-gen-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ syn = { workspace = true, features = ["full", "extra-traits"] }
insta.workspace = true
inventory.workspace = true
prettyplease.workspace = true
pyo3.workspace = true
pyo3 = { workspace = true, features = ["experimental-inspect"] }

[dev-dependencies.pyo3-stub-gen]
path = "../pyo3-stub-gen"
2 changes: 1 addition & 1 deletion pyo3-stub-gen-derive/src/gen_stub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//!
//! ```rust
//! # use pyo3::*;
//! # use my_module::stub::*;
//! # use pyo3_stub_gen::type_info::*;
//! # struct PyPlaceholder;
//! inventory::submit!{
//! PyClassInfo {
Expand Down
10 changes: 5 additions & 5 deletions pyo3-stub-gen-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use proc_macro::TokenStream;
/// Embed metadata for Python stub file generation for `#[pyclass]` macro
///
/// ```
/// # use pyo3_stub_gen::*;
/// # use pyo3_stub_gen_derive::*;
/// # use pyo3::*;
/// #[gen_stub_pyclass]
/// #[pyclass(mapping, module = "my_module", name = "Placeholder")]
Expand All @@ -30,7 +30,7 @@ pub fn gen_stub_pyclass(_attr: TokenStream, item: TokenStream) -> TokenStream {
/// Embed metadata for Python stub file generation for `#[pyclass]` macro with enum
///
/// ```
/// # use pyo3_stub_gen::*;
/// # use pyo3_stub_gen_derive::*;
/// # use pyo3::*;
/// #[gen_stub_pyclass_enum]
/// #[pyclass(module = "my_module", name = "DataType")]
Expand All @@ -52,7 +52,7 @@ pub fn gen_stub_pyclass_enum(_attr: TokenStream, item: TokenStream) -> TokenStre
/// Embed metadata for Python stub file generation for `#[pymethods]` macro
///
/// ```
/// # use pyo3_stub_gen::*;
/// # use pyo3_stub_gen_derive::*;
/// # use pyo3::*;
/// # #[gen_stub_pyclass]
/// # #[pyclass]
Expand All @@ -78,7 +78,7 @@ pub fn gen_stub_pymethods(_attr: TokenStream, item: TokenStream) -> TokenStream
/// Embed metadata for Python stub file generation for `#[pyfunction]` macro
///
/// ```
/// # use pyo3_stub_gen::*;
/// # use pyo3_stub_gen_derive::*;
/// # use pyo3::*;
/// # #[pyclass]
/// # #[derive(Clone)]
Expand All @@ -95,7 +95,7 @@ pub fn gen_stub_pymethods(_attr: TokenStream, item: TokenStream) -> TokenStream
/// If you want to append this function to another module, add `module` attribute.
///
/// ```
/// # use pyo3_stub_gen::*;
/// # use pyo3_stub_gen_derive::*;
/// # use pyo3::*;
/// # #[pyclass]
/// # #[derive(Clone)]
Expand Down

0 comments on commit a44f581

Please sign in to comment.