From acd9d75bba8e39ef83a9cae00ae56cc5d94d9e58 Mon Sep 17 00:00:00 2001 From: Jahongir Qurbonov Date: Sun, 6 Oct 2024 14:37:02 +0500 Subject: [PATCH] Fix typo --- client/src/telethon/_impl/client/parsers/html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/telethon/_impl/client/parsers/html.py b/client/src/telethon/_impl/client/parsers/html.py index 5977fd59..6958583f 100644 --- a/client/src/telethon/_impl/client/parsers/html.py +++ b/client/src/telethon/_impl/client/parsers/html.py @@ -85,8 +85,8 @@ class HTMLToTelegramParser(HTMLParser): self._open_tags_meta.appendleft(url) if entity_type and tag not in self._building_entities: - any_entity_type_ = cast(Any, entity_type) - self._building_entities[tag] = any_entity_type_( + any_entity_type = cast(Any, entity_type) + self._building_entities[tag] = any_entity_type( offset=len(self.text), # The length will be determined when closing the tag. length=0,