Merge pull request #2393 from nomeata/master

Arguments to builtin.compile() can be named
This commit is contained in:
Noah
2021-01-03 11:35:33 -06:00
committed by GitHub

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>,