From 4e8f0b7484562d174c6654f67e4991e6d7ebcde5 Mon Sep 17 00:00:00 2001 From: "S. Co1" Date: Thu, 5 Sep 2019 18:41:21 -0400 Subject: Fix misconfigured flake8 so docstrings are properly linted Relint --- pydis_site/utils/resources.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pydis_site/utils') diff --git a/pydis_site/utils/resources.py b/pydis_site/utils/resources.py index fcf8bd75..fb5faef8 100644 --- a/pydis_site/utils/resources.py +++ b/pydis_site/utils/resources.py @@ -9,7 +9,7 @@ import yaml @dataclass class URL: - """A class representing a link to a resource""" + """A class representing a link to a resource.""" icon: str title: str @@ -17,7 +17,7 @@ class URL: class Resource: - """A class representing a resource on the resource page""" + """A class representing a resource on the resource page.""" description: str name: str @@ -26,7 +26,7 @@ class Resource: urls: typing.List[URL] def __repr__(self): - """Return a representation of the resource""" + """Return a representation of the resource.""" return f"" @classmethod @@ -46,14 +46,14 @@ class Resource: class Category: - """A class representing a resource on the resources page""" + """A class representing a resource on the resources page.""" resources: typing.List[Resource] name: str description: str def __repr__(self): - """Return a representation of the category""" + """Return a representation of the category.""" return f"" @classmethod @@ -80,7 +80,7 @@ class Category: def load_categories(order: typing.List[str]) -> typing.List[Category]: - """Load the categories specified in the order list and return them""" + """Load the categories specified in the order list and return them.""" categories = [] for cat in order: direc = "pydis_site/apps/home/resources/" + cat -- cgit v1.2.3