Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Jun 18, 2024
1 parent 2aa4028 commit 10f1450
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pytests/src/misc.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use pyo3::{prelude::*, types::PyDict};
use pyo3::{
prelude::*,
types::{PyDict, PyString},
};

#[pyfunction]
fn issue_219() {
Expand All @@ -7,7 +10,7 @@ fn issue_219() {
}

#[pyfunction]
fn get_type_fully_qualified_name(obj: &Bound<'_, PyAny>) -> PyResult<String> {
fn get_type_fully_qualified_name<'py>(obj: &Bound<'py, PyAny>) -> PyResult<Bound<'py, PyString>> {
obj.get_type().fully_qualified_name()
}

Expand Down

0 comments on commit 10f1450

Please sign in to comment.