File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2198,11 +2198,11 @@ def __getitem__(self, idx):
21982198
21992199 def _require_mutable (self ):
22002200 """
2201- Internal function. Although the general usage of abstract tree is often
2202- in a non-mutable way, mutable usage also exists, especially through
2203- abstract clonable trees. This would affect precomputed number such as
2204- _node_number. This function clears out the precomputed values when
2205- there is a mutable usage .
2201+ Check that ``self`` is mutable and clear the ``_node_number`` parameter.
2202+
2203+ The mutation could affect a precomputed ``_node_number``,
2204+ and so we clear this when this is called, which is done in
2205+ preparation for mutating the tree .
22062206
22072207 Values cleared:
22082208
You can’t perform that action at this time.
0 commit comments