diff options
author | 2019-09-22 06:51:55 -0700 | |
---|---|---|
committer | 2019-09-22 06:51:55 -0700 | |
commit | 7f799b6ee545a26c3ccc6f087946da54aea11430 (patch) | |
tree | cc2646f033c771df8b1269765f041a1f5af9bd8e | |
parent | Add 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-- | .flake8 | 2 | ||||
-rw-r--r-- | pydis_site/apps/api/models/bot/tag.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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': ( |