summaryrefslogtreecommitdiffstats
path: root/activities/models/post_interaction.py
diff options
context:
space:
mode:
authorPaolo Melchiorre2022-12-05 18:38:37 +0100
committerGitHub2022-12-05 10:38:37 -0700
commita9bb4a7122df6d9d4a764de52244c6ec75789ead (patch)
tree14ba582f72ac5e3b133b3644ca03e0f027e7c2ef /activities/models/post_interaction.py
parentdd8e823d2f3ef22fcaa1e43e74f11f7e49eff9e7 (diff)
downloadtakahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.tar.gz
takahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.tar.bz2
takahe-a9bb4a7122df6d9d4a764de52244c6ec75789ead.zip
Add pyupgrade with --py310-plus in pre-commit (#103)
Diffstat (limited to 'activities/models/post_interaction.py')
-rw-r--r--activities/models/post_interaction.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/activities/models/post_interaction.py b/activities/models/post_interaction.py
index a913a0f..0bc2fff 100644
--- a/activities/models/post_interaction.py
+++ b/activities/models/post_interaction.py
@@ -1,5 +1,3 @@
-from typing import Dict
-
from django.db import models, transaction
from django.utils import timezone
@@ -195,7 +193,7 @@ class PostInteraction(StatorModel):
### ActivityPub (outbound) ###
- def to_ap(self) -> Dict:
+ def to_ap(self) -> dict:
"""
Returns the AP JSON for this object
"""
@@ -223,7 +221,7 @@ class PostInteraction(StatorModel):
raise ValueError("Cannot turn into AP")
return value
- def to_undo_ap(self) -> Dict:
+ def to_undo_ap(self) -> dict:
"""
Returns the AP JSON to undo this object
"""