summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@gmail.com>2020-03-03 22:25:44 (GMT)
committerGitHub <noreply@github.com>2020-03-03 22:25:44 (GMT)
commitbe501ca2419a91546dea85ef4f36945545458589 (patch)
tree75288eb978f78b97d2da5b2a052b9908531066f3 /Grammar
parent116fd4af7370706d0d99ac7c70541ef965672d4e (diff)
downloadcpython-be501ca2419a91546dea85ef4f36945545458589.zip
cpython-be501ca2419a91546dea85ef4f36945545458589.tar.gz
cpython-be501ca2419a91546dea85ef4f36945545458589.tar.bz2
bpo-39702: Relax grammar restrictions on decorators (PEP 614) (GH-18570)
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Grammar2
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar
index 21f7e1a..170518a 100644
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -14,7 +14,7 @@ single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE
file_input: (NEWLINE | stmt)* ENDMARKER
eval_input: testlist NEWLINE* ENDMARKER
-decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE
+decorator: '@' namedexpr_test NEWLINE
decorators: decorator+
decorated: decorators (classdef | funcdef | async_funcdef)