Arguments to builtin.compile() can be named

fixes #2390
This commit is contained in:
Joachim Breitner
2021-01-03 11:03:56 +01:00
parent 8b31efb862
commit a41fa97bfc

View File

@@ -103,11 +103,11 @@ mod decl {
#[derive(FromArgs)]
#[allow(dead_code)]
struct CompileArgs {
#[pyarg(positional)]
#[pyarg(any)]
source: Either<PyStrRef, PyBytesRef>,
#[pyarg(positional)]
#[pyarg(any)]
filename: PyStrRef,
#[pyarg(positional)]
#[pyarg(any)]
mode: PyStrRef,
#[pyarg(any, optional)]
flags: OptionalArg<PyIntRef>,