Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhly committed Oct 12, 2023
1 parent a25c916 commit 666942a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/input/input_python.rs
Expand Up @@ -258,14 +258,6 @@ impl<'a> Input<'a> for PyAny {
} else if let Some(enum_val) = maybe_as_enum(self.py(), self) {
return Ok(enum_val.str()?.into());
} else {
// let py = self.py();
// // Enum value not inherited from `str`
// let enum_object = py.import("enum").unwrap().getattr("EnumMeta").unwrap().to_object(py);
// let meta_type = self.get_type().get_type();
// if meta_type.is(&enum_object) {
// let val = self.getattr(intern!(py, "value"))?;
// return Ok(val.str()?.into());
// }
Err(ValError::new(ErrorTypeDefaults::StringType, self))
}
}
Expand Down

0 comments on commit 666942a

Please sign in to comment.