mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
[doc] fix wrong class name references in comprehension nodes (#62)
This commit is contained in:
parent
f9ff50047e
commit
4b714e77ee
1 changed files with 2 additions and 2 deletions
|
|
@ -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``.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue