diff options
author | 2019-09-05 18:41:21 -0400 | |
---|---|---|
committer | 2019-09-05 18:41:21 -0400 | |
commit | 4e8f0b7484562d174c6654f67e4991e6d7ebcde5 (patch) | |
tree | 8dcaca167e965e17ea4c6d21bedf0d5a157f5833 /pydis_site/utils | |
parent | Merge pull request #240 from python-discord/update-contrib (diff) |
Fix misconfigured flake8 so docstrings are properly linted
Relint
Diffstat (limited to 'pydis_site/utils')
-rw-r--r-- | pydis_site/utils/resources.py | 12 |
1 files changed, 6 insertions, 6 deletions
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"<Resource name={self.name}>" @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"<Category name={self.name}>" @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 |