perf(parser): A lot of optimizations to speed things up
This commit is contained in:
@@ -31,9 +31,6 @@ class TextHandler(str):
|
||||
|
||||
__slots__ = ()
|
||||
|
||||
def __new__(cls, string):
|
||||
return super().__new__(cls, str(string))
|
||||
|
||||
def __getitem__(self, key: SupportsIndex | slice) -> "TextHandler":
|
||||
lst = super().__getitem__(key)
|
||||
return cast(_TextHandlerType, TextHandler(lst))
|
||||
|
||||
Reference in New Issue
Block a user