Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "Use ruff for Expr unparsing (#6124)"
This reverts commit 0fb7d0f.
  • Loading branch information
ShaharNaveh authored Oct 22, 2025
commit de5d2076f622d254d7544b49a18781a7cc8f8381
25 changes: 0 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ rustpython-wtf8 = { path = "wtf8", version = "0.4.0" }
rustpython-doc = { git = "https://github.com/RustPython/__doc__", tag = "0.3.0", version = "0.3.0" }

ruff_python_parser = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
ruff_python_codegen = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
ruff_python_ast = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
ruff_text_size = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
ruff_source_file = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
Expand Down
10 changes: 10 additions & 0 deletions Lib/test/test_future_stmt/badsyntax_future3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""This is a test"""
from __future__ import nested_scopes
from __future__ import rested_snopes

def f(x):
def g(y):
return x + y
return g

result = f(2)(4)
10 changes: 10 additions & 0 deletions Lib/test/test_future_stmt/badsyntax_future4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""This is a test"""
import __future__
from __future__ import nested_scopes

def f(x):
def g(y):
return x + y
return g

result = f(2)(4)
12 changes: 12 additions & 0 deletions Lib/test/test_future_stmt/badsyntax_future5.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""This is a test"""
from __future__ import nested_scopes
import foo
from __future__ import nested_scopes


def f(x):
def g(y):
return x + y
return g

result = f(2)(4)
10 changes: 10 additions & 0 deletions Lib/test/test_future_stmt/badsyntax_future6.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""This is a test"""
"this isn't a doc string"
from __future__ import nested_scopes

def f(x):
def g(y):
return x + y
return g

result = f(2)(4)
11 changes: 11 additions & 0 deletions Lib/test/test_future_stmt/badsyntax_future7.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""This is a test"""

from __future__ import nested_scopes; import string; from __future__ import \
nested_scopes

def f(x):
def g(y):
return x + y
return g

result = f(2)(4)
10 changes: 10 additions & 0 deletions Lib/test/test_future_stmt/badsyntax_future8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""This is a test"""

from __future__ import *

def f(x):
def g(y):
return x + y
return g

print(f(2)(4))
10 changes: 10 additions & 0 deletions Lib/test/test_future_stmt/badsyntax_future9.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""This is a test"""

from __future__ import nested_scopes, braces

def f(x):
def g(y):
return x + y
return g

print(f(2)(4))
Loading
Loading