Alias AttributedText to AT

This commit is contained in:
Joscha 2019-05-14 16:03:00 +00:00
parent 0c5369cd9d
commit 3a542caac7

View file

@ -1,6 +1,6 @@
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
__all__ = ["Attributes", "Chunk", "AttributedText"]
__all__ = ["Attributes", "Chunk", "AttributedText", "AT"]
Attributes = Dict[str, Any]
@ -284,3 +284,5 @@ class AttributedText:
else:
middle = self[start:stop].remove(name)
return self[:start] + middle + self[stop:]
AT = AttributedText