Skip to content

Commit bdf9a32

Browse files
authored
Merge pull request #1526 from tonybaloney/patch-1
Annotate only_one comment with additional context
2 parents 276da42 + 7a21457 commit bdf9a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textual/css/query.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def only_one(
246246
# should *not* be anything there, so we *should* get an
247247
# IndexError. We *could* have just checked the length of the
248248
# query, but the idea here is to do the check as cheaply as
249-
# possible.
249+
# possible. "There can be only one!" -- Kurgan et al.
250250
_ = self.nodes[1]
251251
raise TooManyMatches(
252252
"Call to only_one resulted in more than one matched node"

0 commit comments

Comments
 (0)