Skip to content

Commit ee34947

Browse files
committed
update docstrings
1 parent a0ae045 commit ee34947

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

unpythonic/syntax/letdoutil.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ class UnexpandedEnvAssignView:
254254
the env-assignment is expanded away (so, before the ``let[]`` or ``do[]``
255255
containing it is expanded away).
256256
257+
This handles `mcpyrate.core.Done` `ASTMarker`s in the name position transparently,
258+
to accommodate for expanded `mcpyrate.namemacro`s.
259+
257260
**Attributes**:
258261
259262
``name``: the name of the variable, as a str.

unpythonic/syntax/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def is_decorator(tree, fname):
124124
125125
We detect:
126126
127-
- ``Name``, ``Attribute`` or a `mcpyrate` hygienic capture matching
128-
the given ``fname`` (non-parametric decorator), and
127+
- ``Name``, ``Attribute``, a `mcpyrate.core.Done`, or a `mcpyrate`
128+
hygienic capture matching the given ``fname`` (non-parametric decorator), and
129129
130130
- ``Call`` whose ``.func`` matches the above rule (parametric decorator).
131131
"""

0 commit comments

Comments
 (0)