aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-22 06:51:55 -0700
committerGravatar GitHub <[email protected]>2019-09-22 06:51:55 -0700
commit7f799b6ee545a26c3ccc6f087946da54aea11430 (patch)
treecc2646f033c771df8b1269765f041a1f5af9bd8e
parentAdd manage.py to linting ignore (diff)
Apply suggestions from code review
Co-Authored-By: Mark <[email protected]> Co-Authored-By: Sebastiaan Zeeff <[email protected]>
-rw-r--r--.flake82
-rw-r--r--pydis_site/apps/api/models/bot/tag.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/.flake8 b/.flake8
index 66051658..e36c2eb1 100644
--- a/.flake8
+++ b/.flake8
@@ -17,4 +17,4 @@ ignore=
# Type Annotations
TYP002,TYP003,TYP101,TYP102,TYP204,TYP206
per-file-ignores =
- **/tests/**:D101,D102,D103,D105,D106,S106,TYP
+ **/tests/**:D1,S106,TYP
diff --git a/pydis_site/apps/api/models/bot/tag.py b/pydis_site/apps/api/models/bot/tag.py
index 792e6b43..5435ee48 100644
--- a/pydis_site/apps/api/models/bot/tag.py
+++ b/pydis_site/apps/api/models/bot/tag.py
@@ -42,7 +42,7 @@ def validate_tag_embed_fields(fields: dict) -> None:
validator(value)
-def validate_tag_embed_footer(footer: Any) -> None:
+def validate_tag_embed_footer(footer: Dict[str, str]) -> None:
"""Raises a ValidationError if the given footer is invalid."""
field_validators = {
'text': (