Skip to content

Commit

Permalink
Fix typos in exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dkopitsa committed Aug 9, 2024
1 parent fdd7f53 commit 5e3c4f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions piccolo/query/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,13 +796,13 @@ class ForUpdate:

def __post_init__(self):
if not isinstance(self.nowait, bool):
raise TypeError("nowait must be an integer")
raise TypeError("nowait must be a bool")
if not isinstance(self.skip_locked, bool):
raise TypeError("skip_locked must be an integer")
raise TypeError("skip_locked must be a bool")
if not isinstance(self.of, tuple) or not all(
hasattr(x, "_meta") for x in self.of
):
raise TypeError("of must be an tuple of Table")
raise TypeError("of must be a tuple of Table")
if self.nowait and self.skip_locked:
raise TypeError(
"The nowait option cannot be used with skip_locked"
Expand Down

0 comments on commit 5e3c4f0

Please sign in to comment.