Skip to content

Commit 0786e4c

Browse files
authored
Merge pull request RustPython#2393 from nomeata/master
Arguments to builtin.compile() can be named
2 parents 8b31efb + a41fa97 commit 0786e4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vm/src/builtins/make_module.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ mod decl {
103103
#[derive(FromArgs)]
104104
#[allow(dead_code)]
105105
struct CompileArgs {
106-
#[pyarg(positional)]
106+
#[pyarg(any)]
107107
source: Either<PyStrRef, PyBytesRef>,
108-
#[pyarg(positional)]
108+
#[pyarg(any)]
109109
filename: PyStrRef,
110-
#[pyarg(positional)]
110+
#[pyarg(any)]
111111
mode: PyStrRef,
112112
#[pyarg(any, optional)]
113113
flags: OptionalArg<PyIntRef>,

0 commit comments

Comments
 (0)