From 3a542caac70670773e98baa49e95138bc21ba440 Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 14 May 2019 16:03:00 +0000 Subject: [PATCH] Alias AttributedText to AT --- cheuph/markup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cheuph/markup.py b/cheuph/markup.py index 68e19cb..88435f5 100644 --- a/cheuph/markup.py +++ b/cheuph/markup.py @@ -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