From dce0678b6d19fd210a5862b503ae9dcc7b894410 Mon Sep 17 00:00:00 2001 From: Jeremiah Boby Date: Wed, 10 Jul 2019 04:16:25 +0100 Subject: Give a code a lint --- pydis_site/apps/home/views/home.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pydis_site/apps/home/views/home.py') diff --git a/pydis_site/apps/home/views/home.py b/pydis_site/apps/home/views/home.py index 87f423aa..03873a72 100644 --- a/pydis_site/apps/home/views/home.py +++ b/pydis_site/apps/home/views/home.py @@ -28,11 +28,10 @@ class HomeView(View): def _get_api_data(self) -> Dict[str, Dict[str, str]]: """Call the GitHub API and get information about our repos.""" - repo_dict = {repo_name: {} for repo_name in self.repos} + repo_dict: Dict[str, dict] = {repo_name: {} for repo_name in self.repos} # Fetch the data from the GitHub API - api_data = requests.get(self.github_api) - api_data = api_data.json() + api_data: List[dict] = requests.get(self.github_api).json() # Process the API data into our dict for repo in api_data: -- cgit v1.2.3