mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
Fix Annotation of EncryptedCredentials.decrypted_secret
(#4199)
Co-authored-by: marinelay <marinelay@gmail.com>
This commit is contained in:
parent
f6d009d3ac
commit
58b8ef4ce4
2 changed files with 4 additions and 3 deletions
|
@ -123,6 +123,7 @@ The following wonderful people contributed directly or indirectly to this projec
|
|||
- `Vorobjev Simon <https://github.com/simonvorobjev>`_
|
||||
- `Wagner Macedo <https://github.com/wagnerluis1982>`_
|
||||
- `wjt <https://github.com/wjt>`_
|
||||
- `Wonseok Oh <https://github.com/marinelay>`_
|
||||
- `Yaw Danso <https://github.com/dglitxh>`_
|
||||
- `Yao Kuan <https://github.com/thatguylah>`_
|
||||
- `zeroone2numeral2 <https://github.com/zeroone2numeral2>`_
|
||||
|
|
|
@ -153,15 +153,15 @@ class EncryptedCredentials(TelegramObject):
|
|||
|
||||
self._id_attrs = (self.data, self.hash, self.secret)
|
||||
|
||||
self._decrypted_secret: Optional[str] = None
|
||||
self._decrypted_secret: Optional[bytes] = None
|
||||
self._decrypted_data: Optional[Credentials] = None
|
||||
|
||||
self._freeze()
|
||||
|
||||
@property
|
||||
def decrypted_secret(self) -> str:
|
||||
def decrypted_secret(self) -> bytes:
|
||||
"""
|
||||
:obj:`str`: Lazily decrypt and return secret.
|
||||
:obj:`bytes`: Lazily decrypt and return secret.
|
||||
|
||||
Raises:
|
||||
telegram.error.PassportDecryptionError: Decryption failed. Usually due to bad
|
||||
|
|
Loading…
Reference in a new issue