Переглянути джерело

add missing public items to __all__

Added a few more public classes, and sorted the __all__ value.
The Attribute and Parameter classes are not included as they can
be imported from the `mwparserfromhell.nodes.extras` without
linter complaining.  They could be added to this __all__ too.
tags/v0.6
Yuri Astrakhan 4 роки тому
committed by GitHub
джерело
коміт
e66a2db0ed
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: 4AEE18F83AFDEB23
1 змінених файлів з 2 додано та 2 видалено
  1. +2
    -2
      mwparserfromhell/nodes/__init__.py

+ 2
- 2
mwparserfromhell/nodes/__init__.py Переглянути файл

@@ -34,8 +34,8 @@ from __future__ import unicode_literals
from ..compat import str
from ..string_mixin import StringMixIn

__all__ = ["Node", "Text", "Argument", "Heading", "HTMLEntity", "Tag",
"Template"]
__all__ = ["Argument", "Comment", "ExternalLink", "HTMLEntity", "Heading",
"Node", "Tag", "Template", "Text", "Wikilink"]

class Node(StringMixIn):
"""Represents the base Node type, demonstrating the methods to override.


Завантаження…
Відмінити
Зберегти