>From cf4cd6d4ca1debc6f0b82aa5c9a03a78730980b1 Mon Sep 17 00:00:00 2001 From: Kapuze Martin Date: Mon, 23 Nov 2020 21:56:09 +0100 Subject: [PATCH 3/3] generalize type definition and apply it to parent classes --- admin/grammars/python.wy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/grammars/python.wy b/admin/grammars/python.wy index cc5093b0b7..bb3d96d703 100644 --- a/admin/grammars/python.wy +++ b/admin/grammars/python.wy @@ -893,7 +893,7 @@ paren_classes ;; parser can parse general expressions, I don't see much benefit in ;; generating a string of expression as base class "name". paren_class - : dotted_name + : type ; ;;;**************************************************************************** @@ -1172,7 +1172,7 @@ type_hint ; type - : dotted_name + : test ; ;; ['=' test] -- 2.25.1