Kaydet (Commit) 9a255657 authored tarafından Batuhan Taşkaya's avatar Batuhan Taşkaya

targets => target

üst 30d473b1
......@@ -2,7 +2,10 @@ from pepallow.allow import Allow
from pepallow.peps.p231 import AssetBean as Bean
with Allow(211):
pass
s = [1, 2, 3]
t = "abc"
for i, j in s @ t:
print(f"{i}{j}")
with Allow(231):
b = Bean(3)
......
......@@ -23,7 +23,7 @@ class PEP211Transformer(ast.NodeTransformer):
):
if len(node.target.elts) < 2:
raise ValueError(f"Not enough values to unpack (expected 2, got {len(node.target.elts)})")
elif len(node.targets.elts) > 2:
elif len(node.target.elts) > 2:
raise ValueError("Too many values to unpack (expected 2)")
a, b = node.target.elts
......
......@@ -8,7 +8,8 @@ with open(current_dir / "README.md", encoding="utf-8") as f:
setup(
name="pepallow",
version="0.2",
version="0.2.1",
version="0.2.1",
packages=find_packages(),
url="https://github.com/abstractequalsmagic/pepallow",
description = "Hack the interpreter for running rejected pep's changes.",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment