Use Either type for OptionalArg in CastArgs

Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
This commit is contained in:
24seconds
2021-11-28 18:25:44 +09:00
committed by GitHub
parent dd773b3413
commit 290f91cd5e

View File

@@ -876,7 +876,7 @@ struct CastArgs {
#[pyarg(any)]
format: PyStrRef,
#[pyarg(any, optional)]
shape: OptionalArg<PyObjectRef>,
shape: OptionalArg<Either<PyTupleRef, PyListRef>>,
}
enum SubscriptNeedle {