Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163705
D2833.id10072.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
968 B
Subscribers
None
D2833.id10072.diff
View Options
diff --git a/swh/web/settings/common.py b/swh/web/settings/common.py
--- a/swh/web/settings/common.py
+++ b/swh/web/settings/common.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2017-2019 The Software Heritage developers
+# Copyright (C) 2017-2020 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
@@ -11,6 +11,8 @@
import os
import sys
+from typing import Any, Dict
+
from swh.web.config import get_config
swh_web_config = get_config()
@@ -159,7 +161,7 @@
throttle_rates[limiter_scope + '_' + http_request.lower()] = \
limiter_conf['limiter_rate'][http_request]
-REST_FRAMEWORK = {
+REST_FRAMEWORK: Dict[str, Any] = {
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
'swh.web.api.renderers.YAMLRenderer',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 1:42 PM (8 h, 45 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3215619
Attached To
D2833: swh.web.settings.production: Fix mypy warning
Event Timeline
Log In to Comment