diff options
author | 2019-09-24 13:52:32 -0400 | |
---|---|---|
committer | 2019-09-24 13:52:32 -0400 | |
commit | 5d5ce4b87f138d2ba3ca2be36cf92f0bc8793ca4 (patch) | |
tree | 65fb936e7a63cb6c1f80509a67376faaa4779b27 | |
parent | Apply suggestions from code review (diff) |
Apply suggestions from code review
Co-Authored-By: Mark <[email protected]>
-rw-r--r-- | pydis_site/apps/api/models/bot/tag.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/apps/api/models/bot/tag.py b/pydis_site/apps/api/models/bot/tag.py index 5435ee48..5d4cc393 100644 --- a/pydis_site/apps/api/models/bot/tag.py +++ b/pydis_site/apps/api/models/bot/tag.py @@ -1,5 +1,5 @@ from collections.abc import Mapping -from typing import Any, Dict, List, Union +from typing import Any, Dict from django.contrib.postgres import fields as pgfields from django.core.exceptions import ValidationError @@ -93,7 +93,7 @@ def validate_tag_embed_author(author: Any) -> None: validator(value) -def validate_tag_embed(embed: Dict[str, Union[str, List[dict], dict]]) -> None: +def validate_tag_embed(embed: Any) -> None: """ Validate a JSON document containing an embed as possible to send on Discord. @@ -120,7 +120,7 @@ def validate_tag_embed(embed: Dict[str, Union[str, List[dict], dict]]) -> None: ... Args: - embed (Dict[str, Union[str, List[dict], dict]]): + embed (Any): A dictionary describing the contents of this embed. See the official documentation for a full reference of accepted keys by this dictionary: |