Skip to content

Commit

Permalink
fix up comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle committed Sep 19, 2024
1 parent 92888ed commit c4fc1a5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/validators/enum_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ impl<T: EnumValidateValue> Validator for EnumValidator<T> {
if let Some(v) = T::validate_value(py, input, &self.lookup, strict)? {
return Ok(v);
} else if let Ok(res) = class.as_unbound().call1(py, (input.as_python(),)) {
// as a last result, just try to initialize the enum with the input
return Ok(res);
} else if let Some(ref missing) = self.missing {
let enum_value = missing.bind(py).call1((input.to_object(py),)).map_err(|_| {
Expand Down

0 comments on commit c4fc1a5

Please sign in to comment.