diff options
author | 2019-04-20 14:23:50 +0200 | |
---|---|---|
committer | 2019-04-20 14:23:50 +0200 | |
commit | 8936bf63e9b508e308b5f563d9b172f4fcb954a7 (patch) | |
tree | 8771856393183fb3db532657b1cab02bee827655 /pydis_site | |
parent | Add type hinting. (diff) |
Make the flakes happy.
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/apps/home/tests/test_repodata_helpers.py | 2 | ||||
-rw-r--r-- | pydis_site/apps/home/views/home.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/pydis_site/apps/home/tests/test_repodata_helpers.py b/pydis_site/apps/home/tests/test_repodata_helpers.py index 639c6fac..59cb2331 100644 --- a/pydis_site/apps/home/tests/test_repodata_helpers.py +++ b/pydis_site/apps/home/tests/test_repodata_helpers.py @@ -10,7 +10,7 @@ from pydis_site.apps.home.models import RepositoryMetadata from pydis_site.apps.home.views import HomeView -def mocked_requests_get(*args, **kwargs) -> "MockResponse": +def mocked_requests_get(*args, **kwargs) -> "MockResponse": # noqa """A mock version of requests.get, so we don't need to call the API every time we run a test""" class MockResponse: def __init__(self, json_data, status_code): diff --git a/pydis_site/apps/home/views/home.py b/pydis_site/apps/home/views/home.py index fc552071..e4daf380 100644 --- a/pydis_site/apps/home/views/home.py +++ b/pydis_site/apps/home/views/home.py @@ -1,8 +1,7 @@ -from typing import Dict, Union, List +from typing import Dict, List import requests from django.core.handlers.wsgi import WSGIRequest -from django.db.models import QuerySet from django.http import HttpResponse from django.shortcuts import render from django.utils import timezone |