Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
malformat
  • Loading branch information
youknowone committed Nov 16, 2025
commit a577106efd36a6d55e88597feab0fecde9108d36
9 changes: 6 additions & 3 deletions crates/vm/src/stdlib/ast/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ impl Node for ruff::ConversionFlag {
) -> PyResult<Self> {
i32::try_from_object(vm, object)?
.to_u32()
.and_then(bytecode::ConversionFlag::from_op_arg)
.and_then(
bytecode::ConversionFlag::from_op_arg)
.map(|flag| match flag {
bytecode::ConversionFlag::None => Self::None,
bytecode::ConversionFlag::Str => Self::Str,
bytecode::ConversionFlag::None =>
Self::None,
bytecode::ConversionFlag::Str =>
Self::Str,
bytecode::ConversionFlag::Ascii => Self::Ascii,
bytecode::ConversionFlag::Repr => Self::Repr,
})
Expand Down
Loading