Skip to content

Commit

Permalink
Annotate only_one comment with additional context
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybaloney authored Jan 8, 2023
1 parent b3495c6 commit 3f4bb0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/css/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def only_one(
# should *not* be anything there, so we *should* get an
# IndexError. We *could* have just checked the length of the
# query, but the idea here is to do the check as cheaply as
# possible.
# possible. "There can be only one!" -- Duncan McLeod
_ = self.nodes[1]
raise TooManyMatches(
"Call to only_one resulted in more than one matched node"
Expand Down

0 comments on commit 3f4bb0a

Please sign in to comment.