Skip to content

Commit 92118e3

Browse files
committed
Reformat __init__ parameters
1 parent e9a3629 commit 92118e3

File tree

5 files changed

+8
-34
lines changed

5 files changed

+8
-34
lines changed

pyrogram/client/types/input_media/input_media_animation.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,8 @@ class InputMediaAnimation(InputMedia):
5252
Animation duration.
5353
"""
5454

55-
def __init__(self,
56-
media: str,
57-
thumb: str = None,
58-
caption: str = "",
59-
parse_mode: str = "",
60-
width: int = 0,
61-
height: int = 0,
62-
duration: int = 0):
55+
def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = "", width: int = 0,
56+
height: int = 0, duration: int = 0):
6357
super().__init__(media, caption, parse_mode)
6458

6559
self.thumb = thumb

pyrogram/client/types/input_media/input_media_audio.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,8 @@ class InputMediaAudio(InputMedia):
5353
Title of the audio
5454
"""
5555

56-
def __init__(self,
57-
media: str,
58-
thumb: str = None,
59-
caption: str = "",
60-
parse_mode: str = "",
61-
duration: int = 0,
62-
performer: int = "",
63-
title: str = ""):
56+
def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = "", duration: int = 0,
57+
performer: int = "", title: str = ""):
6458
super().__init__(media, caption, parse_mode)
6559

6660
self.thumb = thumb

pyrogram/client/types/input_media/input_media_document.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ class InputMediaDocument(InputMedia):
4343
Defaults to Markdown.
4444
"""
4545

46-
def __init__(self,
47-
media: str,
48-
thumb: str = None,
49-
caption: str = "",
50-
parse_mode: str = ""):
46+
def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = ""):
5147
super().__init__(media, caption, parse_mode)
5248

5349
self.thumb = thumb

pyrogram/client/types/input_media/input_media_photo.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,5 @@ class InputMediaPhoto(InputMedia):
3939
Defaults to Markdown.
4040
"""
4141

42-
def __init__(self,
43-
media: str,
44-
caption: str = "",
45-
parse_mode: str = ""):
42+
def __init__(self, media: str, caption: str = "", parse_mode: str = ""):
4643
super().__init__(media, caption, parse_mode)

pyrogram/client/types/input_media/input_media_video.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,8 @@ class InputMediaVideo(InputMedia):
5757
Pass True, if the uploaded video is suitable for streaming.
5858
"""
5959

60-
def __init__(self,
61-
media: str,
62-
thumb: str = None,
63-
caption: str = "",
64-
parse_mode: str = "",
65-
width: int = 0,
66-
height: int = 0,
67-
duration: int = 0,
68-
supports_streaming: bool = True):
60+
def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = "", width: int = 0,
61+
height: int = 0, duration: int = 0, supports_streaming: bool = True):
6962
super().__init__(media, caption, parse_mode)
7063

7164
self.thumb = thumb

0 commit comments

Comments
 (0)