Runs black

This commit is contained in:
Mouse Reeve
2021-03-08 09:54:02 -08:00
parent ad43e5c83a
commit 3bdfc341e4
4 changed files with 40 additions and 24 deletions

View File

@ -295,11 +295,11 @@ class Review(Status):
class ReviewRating(Review):
''' a subtype of review that only contains a rating '''
""" a subtype of review that only contains a rating """
def save(self, *args, **kwargs):
if not self.rating:
raise ValueError(
'ReviewRating object must include a numerical rating')
raise ValueError("ReviewRating object must include a numerical rating")
return super().save(*args, **kwargs)
@property
@ -307,7 +307,7 @@ class ReviewRating(Review):
return 'Rated "{}": {:d} stars'.format(self.book.title, self.rating)
activity_serializer = activitypub.Rating
pure_type = 'Note'
pure_type = "Note"
class Boost(ActivityMixin, Status):