forked from Rust-related/RustPython
Use Either type for OptionalArg in CastArgs
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
This commit is contained in:
@@ -876,7 +876,7 @@ struct CastArgs {
|
||||
#[pyarg(any)]
|
||||
format: PyStrRef,
|
||||
#[pyarg(any, optional)]
|
||||
shape: OptionalArg<PyObjectRef>,
|
||||
shape: OptionalArg<Either<PyTupleRef, PyListRef>>,
|
||||
}
|
||||
|
||||
enum SubscriptNeedle {
|
||||
|
||||
Reference in New Issue
Block a user