From d7f95ac6b6e7775306c465a7b59e57da4e7c62d9 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sat, 10 Sep 2022 12:53:07 -0400 Subject: [PATCH] Upgrade RustPython parser to handle list assignments --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- resources/test/fixtures/F821.py | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 989ed5095f..eecebe6ff6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1787,7 +1787,7 @@ dependencies = [ [[package]] name = "rustpython-ast" version = "0.1.0" -source = "git+https://github.com/charliermarsh/RustPython.git?rev=8cc3d23ddaa6339bf56608adaeefabff3ad329e7#8cc3d23ddaa6339bf56608adaeefabff3ad329e7" +source = "git+https://github.com/charliermarsh/RustPython.git?rev=7d21c6923a506e79cc041708d83cef925efd33f4#7d21c6923a506e79cc041708d83cef925efd33f4" dependencies = [ "num-bigint", "rustpython-compiler-core", @@ -1796,7 +1796,7 @@ dependencies = [ [[package]] name = "rustpython-compiler-core" version = "0.1.2" -source = "git+https://github.com/charliermarsh/RustPython.git?rev=8cc3d23ddaa6339bf56608adaeefabff3ad329e7#8cc3d23ddaa6339bf56608adaeefabff3ad329e7" +source = "git+https://github.com/charliermarsh/RustPython.git?rev=7d21c6923a506e79cc041708d83cef925efd33f4#7d21c6923a506e79cc041708d83cef925efd33f4" dependencies = [ "bincode", "bitflags", @@ -1813,7 +1813,7 @@ dependencies = [ [[package]] name = "rustpython-parser" version = "0.1.2" -source = "git+https://github.com/charliermarsh/RustPython.git?rev=8cc3d23ddaa6339bf56608adaeefabff3ad329e7#8cc3d23ddaa6339bf56608adaeefabff3ad329e7" +source = "git+https://github.com/charliermarsh/RustPython.git?rev=7d21c6923a506e79cc041708d83cef925efd33f4#7d21c6923a506e79cc041708d83cef925efd33f4" dependencies = [ "ahash", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index a3d1e32774..90d5323165 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ notify = { version = "4.0.17" } once_cell = { version = "1.13.1" } rayon = { version = "1.5.3" } regex = { version = "1.6.0" } -rustpython-parser = { features = ["lalrpop"], git = "https://github.com/charliermarsh/RustPython.git", rev = "8cc3d23ddaa6339bf56608adaeefabff3ad329e7" } +rustpython-parser = { features = ["lalrpop"], git = "https://github.com/charliermarsh/RustPython.git", rev = "7d21c6923a506e79cc041708d83cef925efd33f4" } serde = { version = "1.0.143", features = ["derive"] } serde_json = { version = "1.0.83" } toml = { version = "0.5.9" } diff --git a/resources/test/fixtures/F821.py b/resources/test/fixtures/F821.py index 7ac7795af7..722f463907 100644 --- a/resources/test/fixtures/F821.py +++ b/resources/test/fixtures/F821.py @@ -56,3 +56,5 @@ except Exception as e: y: int = 1 x: "Bar" = 1 + +[first] = ["yup"]