Skip to content

Commit

Permalink
fix: PyAnyMethods::dir result now requires unwrapping to become PyList
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n committed Jun 25, 2024
1 parent e2bab8e commit 0fbd199
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/py2sl/slpyobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ impl<'v> StarlarkValue<'v> for SlPyObject {
let inner = self.0.bind(py);
inner
.dir()
.unwrap() // no way to propagate error with this interface
.into_iter()
.map(|x| x.extract::<String>().unwrap())
.collect()
Expand Down

0 comments on commit 0fbd199

Please sign in to comment.