Wrap buttons typehint in Optional

Closes #3762.
This commit is contained in:
Lonami Exo 2022-09-20 18:03:16 +02:00
parent 5a17397fc7
commit 2d4305db76
2 changed files with 3 additions and 3 deletions

View File

@ -618,7 +618,7 @@ class MessageMethods:
thumb: 'hints.FileLike' = None, thumb: 'hints.FileLike' = None,
force_document: bool = False, force_document: bool = False,
clear_draft: bool = False, clear_draft: bool = False,
buttons: 'hints.MarkupLike' = None, buttons: typing.Optional['hints.MarkupLike'] = None,
silent: bool = None, silent: bool = None,
background: bool = None, background: bool = None,
supports_streaming: bool = False, supports_streaming: bool = False,
@ -1030,7 +1030,7 @@ class MessageMethods:
file: 'hints.FileLike' = None, file: 'hints.FileLike' = None,
thumb: 'hints.FileLike' = None, thumb: 'hints.FileLike' = None,
force_document: bool = False, force_document: bool = False,
buttons: 'hints.MarkupLike' = None, buttons: typing.Optional['hints.MarkupLike'] = None,
supports_streaming: bool = False, supports_streaming: bool = False,
schedule: 'hints.DateLike' = None schedule: 'hints.DateLike' = None
) -> 'types.Message': ) -> 'types.Message':

View File

@ -110,7 +110,7 @@ class UploadMethods:
formatting_entities: typing.Optional[typing.List[types.TypeMessageEntity]] = None, formatting_entities: typing.Optional[typing.List[types.TypeMessageEntity]] = None,
voice_note: bool = False, voice_note: bool = False,
video_note: bool = False, video_note: bool = False,
buttons: 'hints.MarkupLike' = None, buttons: typing.Optional['hints.MarkupLike'] = None,
silent: bool = None, silent: bool = None,
background: bool = None, background: bool = None,
supports_streaming: bool = False, supports_streaming: bool = False,