Skip to content

Commit 54bf7a9

Browse files
committed
Add a docstring note about before/after being mutually exclusive
1 parent 58ee841 commit 54bf7a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/textual/widget.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,10 @@ def move_child(
495495
496496
Raises:
497497
WidgetError: If there is a problem with the child or target.
498+
499+
Note:
500+
Only one of ``before`` or ``after`` can be provided. If neither
501+
or both are provided a ``WidgetError`` will be raised.
498502
"""
499503

500504
# One or the other of before or after are required. Can't do

0 commit comments

Comments
 (0)