diff --git a/Cargo.lock b/Cargo.lock index 4f8203ac94..81517ceaba 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=ff6112d7c70729be76eaad8c9e5b8ef24d13de99#ff6112d7c70729be76eaad8c9e5b8ef24d13de99" +source = "git+https://github.com/charliermarsh/RustPython.git?rev=8cc3d23ddaa6339bf56608adaeefabff3ad329e7#8cc3d23ddaa6339bf56608adaeefabff3ad329e7" 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=ff6112d7c70729be76eaad8c9e5b8ef24d13de99#ff6112d7c70729be76eaad8c9e5b8ef24d13de99" +source = "git+https://github.com/charliermarsh/RustPython.git?rev=8cc3d23ddaa6339bf56608adaeefabff3ad329e7#8cc3d23ddaa6339bf56608adaeefabff3ad329e7" 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=ff6112d7c70729be76eaad8c9e5b8ef24d13de99#ff6112d7c70729be76eaad8c9e5b8ef24d13de99" +source = "git+https://github.com/charliermarsh/RustPython.git?rev=8cc3d23ddaa6339bf56608adaeefabff3ad329e7#8cc3d23ddaa6339bf56608adaeefabff3ad329e7" dependencies = [ "ahash", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index c6a0599f9c..e8cc75361b 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 = "ff6112d7c70729be76eaad8c9e5b8ef24d13de99" } +rustpython-parser = { features = ["lalrpop"], git = "https://github.com/charliermarsh/RustPython.git", rev = "8cc3d23ddaa6339bf56608adaeefabff3ad329e7" } 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 d7272127be..a50b65869e 100644 --- a/resources/test/fixtures/F821.py +++ b/resources/test/fixtures/F821.py @@ -33,8 +33,7 @@ def ternary_optarg(prec, exp_range, itr): class Foo: CLASS_VAR = 1 REFERENCES_CLASS_VAR = {"CLASS_VAR": CLASS_VAR} - # TODO: This should be recognized as a defined variable. - ANNOTATED_CLASS_VAR: int = 2 # noqa: F821 + ANNOTATED_CLASS_VAR: int = 2 class Class: @@ -42,11 +41,11 @@ class Class: # TODO(charlie): This should be recognized as a defined variable. Class # noqa: F821 + try: x = 1 / 0 except Exception as e: print(e) -# TODO: This should be recognized as a defined variable. -y: int = 1 # noqa: F821 +y: int = 1