From 4b714e77ee22155a2ab50dfaaaf0a46ebd2f1da1 Mon Sep 17 00:00:00 2001 From: jimmylai Date: Thu, 12 Sep 2019 12:09:29 -0700 Subject: [PATCH] [doc] fix wrong class name references in comprehension nodes (#62) --- libcst/_nodes/_expression.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcst/_nodes/_expression.py b/libcst/_nodes/_expression.py index de4fe99f..2cb3a5c0 100644 --- a/libcst/_nodes/_expression.py +++ b/libcst/_nodes/_expression.py @@ -2993,7 +2993,7 @@ class Dict(BaseDict): @dataclass(frozen=True) class CompFor(CSTNode): """ - One ``for`` clause in a :class:`BaseComprehension`, or a nested hierarchy of + One ``for`` clause in a :class:`BaseComp`, or a nested hierarchy of ``for`` clauses. Nested loops in comprehensions are difficult to get right, but they can be thought @@ -3221,7 +3221,7 @@ class BaseComp(BaseExpression, ABC): class BaseSimpleComp(BaseComp, ABC): """ - The base class for :class:`ListComp`, :class:`SetComp`, and :class:`Generator`. + The base class for :class:`ListComp`, :class:`SetComp`, and :class:`GeneratorExp`. :class:`DictComp` is not a :class:`BaseSimpleComp`, because it uses ``key`` and ``value``. """