Alias AttributedText to AT
This commit is contained in:
parent
0c5369cd9d
commit
3a542caac7
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
|
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
|
||||||
|
|
||||||
__all__ = ["Attributes", "Chunk", "AttributedText"]
|
__all__ = ["Attributes", "Chunk", "AttributedText", "AT"]
|
||||||
|
|
||||||
Attributes = Dict[str, Any]
|
Attributes = Dict[str, Any]
|
||||||
|
|
||||||
|
|
@ -284,3 +284,5 @@ class AttributedText:
|
||||||
else:
|
else:
|
||||||
middle = self[start:stop].remove(name)
|
middle = self[start:stop].remove(name)
|
||||||
return self[:start] + middle + self[stop:]
|
return self[:start] + middle + self[stop:]
|
||||||
|
|
||||||
|
AT = AttributedText
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue