Fix minor things and type hints

This commit is contained in:
Tulir Asokan
2018-09-28 01:02:09 +03:00
parent 828047e272
commit b44d6d2d90
8 changed files with 23 additions and 21 deletions
@@ -26,11 +26,11 @@ class MatrixParserCommon:
"ol", "ul", "li",
"h1", "h2", "h3", "h4", "h5", "h6",
"div", "hr", "table") # type: Tuple[str, ...]
list_bullets = ("", "", "", "")
list_bullets = ("", "", "", "") # type: Tuple[str, ...]
@classmethod
def list_bullet(cls, depth: int) -> str:
return cls.list_bullets[(depth - 1) % len(cls.list_bullets)]
return cls.list_bullets[(depth - 1) % len(cls.list_bullets)] + " "
ParsedMessage = Tuple[str, List[TypeMessageEntity]]