Skip to content

Commit 02ce2d9

Browse files
docs: fix typo in prev_siblings_are docstring (#5281)
1 parent 473670e commit 02ce2d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/black/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def preceding_leaf(node: LN | None) -> Leaf | None:
457457

458458
def prev_siblings_are(node: LN | None, tokens: list[NodeType | None]) -> bool:
459459
"""Return if the `node` and its previous siblings match types against the provided
460-
list of tokens; the provided `node`has its type matched against the last element in
460+
list of tokens; the provided `node` has its type matched against the last element in
461461
the list. `None` can be used as the first element to declare that the start of the
462462
list is anchored at the start of its parent's children."""
463463
if not tokens:

0 commit comments

Comments
 (0)