aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/base_route.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-03-04 16:33:01 +0000
committerGravatar GitHub <[email protected]>2018-03-04 16:33:01 +0000
commit5099ae7055b313d1a93d53069c2cfbb0ca0dcf5a (patch)
treee8d4b781a38b17502f24e1fd9f444926e88544d6 /pysite/base_route.py
parentFix navbar dropdown (diff)
Info pages #13xan #13xak (#36)
* Info pages and templates * Info pages and templates * Info pages and templates * Update navigation and fix up HTML * Navigation HTML spacing for readability * Fix error views not using `self.render()` * `render()` method should accept Any for context values * Change header linking CSS to a dedicated class * Rules page * Basic resources page setup * Fix headers for new CSS class * Resource categories and initial resource data * Add link to JSON file on GH - won't work until the branch is merged * Remove info overview page and redirect info root url to resources * Flake8 * Add some tests * Line lengths
Diffstat (limited to 'pysite/base_route.py')
-rw-r--r--pysite/base_route.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pysite/base_route.py b/pysite/base_route.py
index 400a4649..f389b56e 100644
--- a/pysite/base_route.py
+++ b/pysite/base_route.py
@@ -1,6 +1,6 @@
# coding=utf-8
from collections import Iterable
-from typing import Any, Dict
+from typing import Any
from flask import Blueprint, Response, jsonify, render_template
from flask.views import MethodView
@@ -17,7 +17,7 @@ class BaseView(MethodView):
name = None # type: str
- def render(self, *template_names: str, **context: Dict[str, Any]) -> str:
+ def render(self, *template_names: str, **context: Any) -> str:
"""
Render some templates and get them back in a form that you can simply return from your view function.