From a41fa97bfc2e10f53db5720198fd6e5123d48f0a Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Sun, 3 Jan 2021 11:03:56 +0100 Subject: [PATCH] Arguments to builtin.compile() can be named fixes #2390 --- vm/src/builtins/make_module.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vm/src/builtins/make_module.rs b/vm/src/builtins/make_module.rs index 6c7f4a9a6..2af6882af 100644 --- a/vm/src/builtins/make_module.rs +++ b/vm/src/builtins/make_module.rs @@ -103,11 +103,11 @@ mod decl { #[derive(FromArgs)] #[allow(dead_code)] struct CompileArgs { - #[pyarg(positional)] + #[pyarg(any)] source: Either, - #[pyarg(positional)] + #[pyarg(any)] filename: PyStrRef, - #[pyarg(positional)] + #[pyarg(any)] mode: PyStrRef, #[pyarg(any, optional)] flags: OptionalArg,