diff --git a/yandex_music/client.py b/yandex_music/client.py index e60345e..be67e0b 100644 --- a/yandex_music/client.py +++ b/yandex_music/client.py @@ -102,7 +102,7 @@ class Client(YandexMusicObject): которых нет в библиотеке. """ - notice_displayed = False + __notice_displayed = False def __init__( self, @@ -112,10 +112,10 @@ class Client(YandexMusicObject): language: str = 'ru', report_unknown_fields=False, ) -> None: - if not Client.notice_displayed: + if not Client.__notice_displayed: print(f'Yandex Music API v{__version__}, {__copyright__}') print(f'Licensed under the terms of the {__license__}', end='\n\n') - Client.notice_displayed = True + Client.__notice_displayed = True self.logger = logging.getLogger(__name__) self.token = token diff --git a/yandex_music/client_async.py b/yandex_music/client_async.py index b98f3d9..cac3a06 100644 --- a/yandex_music/client_async.py +++ b/yandex_music/client_async.py @@ -106,7 +106,7 @@ class ClientAsync(YandexMusicObject): которых нет в библиотеке. """ - notice_displayed = False + __notice_displayed = False def __init__( self, @@ -116,10 +116,10 @@ class ClientAsync(YandexMusicObject): language: str = 'ru', report_unknown_fields=False, ) -> None: - if not ClientAsync.notice_displayed: + if not ClientAsync.__notice_displayed: print(f'Yandex Music API v{__version__}, {__copyright__}') print(f'Licensed under the terms of the {__license__}', end='\n\n') - ClientAsync.notice_displayed = True + ClientAsync.__notice_displayed = True self.logger = logging.getLogger(__name__) self.token = token