Arguments to builtin.compile() can be named

fixes #2390
This commit is contained in:
Joachim Breitner committed 2021-01-03 11:06:28 +01:00
1 parent 8b31efb862
commit a41fa97bfc
1 file changed
+3 -3
+3 -3
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>,