Skip to content
Merged
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
chore(fmt): apply rustfmt to code
  • Loading branch information
walker84837 committed Oct 21, 2025
commit 1e6dbc65fd76d04356823ec208c575752b54b4da
7 changes: 4 additions & 3 deletions vm/src/stdlib/typing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ pub(crate) mod decl {
)));
}

let name = args.args[0].clone().downcast::<crate::builtins::PyStr>().map_err(|_| {
vm.new_type_error("TypeAliasType name must be a string".to_owned())
})?;
let name = args.args[0]
.clone()
.downcast::<crate::builtins::PyStr>()
.map_err(|_| vm.new_type_error("TypeAliasType name must be a string".to_owned()))?;
let value = args.args[1].clone();

let type_params = if let Some(tp) = args.kwargs.get("type_params") {
Expand Down
Loading