summaryrefslogtreecommitdiff
path: root/wikimini/templates
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-08-19 14:24:15 +0200
committerDaniel Schadt <kingdread@gmx.de>2021-08-19 14:24:15 +0200
commit05bb70ce36a11550222c718c6e69185b44793ca4 (patch)
tree2d0da3f7352871c48afccf213916310b7f51e015 /wikimini/templates
parent7871c99a5ef791a5ce24c4b1d016a8b4200baf34 (diff)
downloadwikimini-05bb70ce36a11550222c718c6e69185b44793ca4.tar.gz
wikimini-05bb70ce36a11550222c718c6e69185b44793ca4.tar.bz2
wikimini-05bb70ce36a11550222c718c6e69185b44793ca4.zip
implement style fixes suggested by pycodestyle
Diffstat (limited to 'wikimini/templates')
-rw-r--r--wikimini/templates/__init__.py6
-rw-r--r--wikimini/templates/mainlinks.py1
-rw-r--r--wikimini/templates/quotes.py1
3 files changed, 5 insertions, 3 deletions
diff --git a/wikimini/templates/__init__.py b/wikimini/templates/__init__.py
index 9e983e1..58a5db8 100644
--- a/wikimini/templates/__init__.py
+++ b/wikimini/templates/__init__.py
@@ -2,9 +2,9 @@
This module contains functions that mimic Wikipedia's templates.
-A template is a function that takes the :class:`~wikimini.Wikimini` instance and the
-:class:`~mwparserfromhell.nodes.template.Template` node to convert, and returns
-a string with the template output (see :const:`Template`).
+A template is a function that takes the :class:`~wikimini.Wikimini` instance
+and the :class:`~mwparserfromhell.nodes.template.Template` node to convert, and
+returns a string with the template output (see :const:`Template`).
"""
from typing import Callable, Optional
diff --git a/wikimini/templates/mainlinks.py b/wikimini/templates/mainlinks.py
index 8c9abbf..3d945ed 100644
--- a/wikimini/templates/mainlinks.py
+++ b/wikimini/templates/mainlinks.py
@@ -3,6 +3,7 @@ from . import registry
from ..document import Paragraph, Plain, BlockLink
+
def tmpl_main(wikimini, obj):
"""Renders the ``{{main|...}}`` template."""
links = [
diff --git a/wikimini/templates/quotes.py b/wikimini/templates/quotes.py
index 39f6fa2..fdf00cc 100644
--- a/wikimini/templates/quotes.py
+++ b/wikimini/templates/quotes.py
@@ -3,6 +3,7 @@ from . import registry
from ..document import Blockquote
+
def tmpl_quote(wikimini, obj):
"""Renders the ``{{blockquote|...}}`` template."""
text = obj.get("text", None)