We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 276da42 + 7a21457 commit bdf9a32Copy full SHA for bdf9a32
src/textual/css/query.py
@@ -246,7 +246,7 @@ def only_one(
246
# should *not* be anything there, so we *should* get an
247
# IndexError. We *could* have just checked the length of the
248
# query, but the idea here is to do the check as cheaply as
249
- # possible.
+ # possible. "There can be only one!" -- Kurgan et al.
250
_ = self.nodes[1]
251
raise TooManyMatches(
252
"Call to only_one resulted in more than one matched node"
0 commit comments