aboutsummaryrefslogtreecommitdiffstats
path: root/backend/models/form.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-02-05 18:49:45 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-02-05 18:49:45 +0400
commitc4f816c576097d78c5645113115bbcaa29f7a1ee (patch)
tree300f0172f2fb8211bbdac21cd378136db7409e1f /backend/models/form.py
parentAdd Docs For Editors & Response Readers Props (diff)
Fix Linting Errors
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'backend/models/form.py')
-rw-r--r--backend/models/form.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/models/form.py b/backend/models/form.py
index 4ee2804..f888d6e 100644
--- a/backend/models/form.py
+++ b/backend/models/form.py
@@ -70,7 +70,7 @@ class Form(BaseModel):
return value
@validator("response_readers", "editors")
- def validate_role_scoping(cls, value: t.Optional[list[str]]):
+ def validate_role_scoping(cls, value: t.Optional[list[str]]) -> t.Optional[list[str]]:
"""Ensure special role based permissions aren't granted to the @everyone role."""
if value and str(DISCORD_GUILD) in value:
raise ValueError("You can not add the everyone role as an access scope.")