python: do not shadow variables to fix pyright warnings

This commit is contained in:
link2xt
2023-01-22 15:10:25 +00:00
parent a6b2c25d42
commit 7bdf79dee5
2 changed files with 5 additions and 5 deletions

View File

@@ -162,8 +162,8 @@ class Chat:
:param name: as a unicode string.
:returns: True on success, False otherwise
"""
name = as_dc_charpointer(name)
return bool(lib.dc_set_chat_name(self.account._dc_context, self.id, name))
name_c = as_dc_charpointer(name)
return bool(lib.dc_set_chat_name(self.account._dc_context, self.id, name_c))
def get_color(self):
"""return the color of the chat.