diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-08-19 14:24:15 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-08-19 14:24:15 +0200 |
commit | 05bb70ce36a11550222c718c6e69185b44793ca4 (patch) | |
tree | 2d0da3f7352871c48afccf213916310b7f51e015 /wikimini/templates | |
parent | 7871c99a5ef791a5ce24c4b1d016a8b4200baf34 (diff) | |
download | wikimini-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__.py | 6 | ||||
-rw-r--r-- | wikimini/templates/mainlinks.py | 1 | ||||
-rw-r--r-- | wikimini/templates/quotes.py | 1 |
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) |