aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Joseph Banks <[email protected]>2019-07-06 23:41:27 +0100
committerGravatar Joseph Banks <[email protected]>2019-07-06 23:41:53 +0100
commit530585f775da5ee975235b7e8655dcb7688ca065 (patch)
treedbfcd315f0354a2e926bd03e3b7bfb379b3a8459 /pydis_site
parentImplement new YAML resource system (diff)
noqa the definition lines inside resources.py because flake8 does not support postponed evaluation
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/utils/resources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/utils/resources.py b/pydis_site/utils/resources.py
index 1053bbc5..582df7f7 100644
--- a/pydis_site/utils/resources.py
+++ b/pydis_site/utils/resources.py
@@ -24,7 +24,7 @@ class Resource:
return f"<Resource name={self.name}>"
@classmethod
- def construct_from_yaml(cls, yaml_data: str) -> Resource:
+ def construct_from_yaml(cls, yaml_data: str) -> Resource: # noqa
resource = cls()
loaded = yaml.safe_load(yaml_data)
@@ -48,7 +48,7 @@ class Category:
return f"<Category name={self.name}>"
@classmethod
- def construct_from_directory(cls, directory: str) -> Category:
+ def construct_from_directory(cls, directory: str) -> Category: # noqa
category = cls()
with open(f"{directory}/category_info.yaml") as category_info: