Update DOMQuery.only_one to include NoMatches in raises list

See #1560
This commit is contained in:
Dave Pearson
2023-01-13 17:25:32 +00:00
parent b6bf7595b8
commit f7c671f710

View File

@@ -233,6 +233,7 @@ class DOMQuery(Generic[QueryType]):
Raises:
WrongType: If the wrong type was found.
NoMatches: If no node matches the query.
TooManyMatches: If there is more than one matching node in the query.
Returns: