From 530585f775da5ee975235b7e8655dcb7688ca065 Mon Sep 17 00:00:00 2001 From: Joseph Banks Date: Sat, 6 Jul 2019 23:41:27 +0100 Subject: noqa the definition lines inside resources.py because flake8 does not support postponed evaluation --- pydis_site/utils/resources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pydis_site') 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"" @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"" @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: -- cgit v1.2.3