Skip to content

Commit 61c5d6f

Browse files
committed
Remove more warnings
1 parent aa1c4e0 commit 61c5d6f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

telegram/inputfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,22 @@ def __init__(self, data):
7575
def headers(self):
7676
"""
7777
Returns:
78-
str:
78+
str
7979
"""
8080
return {'User-agent': USER_AGENT, 'Content-type': self.content_type}
8181

8282
@property
8383
def content_type(self):
8484
"""
8585
Returns:
86-
str:
86+
str
8787
"""
8888
return 'multipart/form-data; boundary=%s' % self.boundary
8989

9090
def to_form(self):
9191
"""
9292
Returns:
93-
str:
93+
str
9494
"""
9595
form = []
9696
form_boundary = '--' + self.boundary
@@ -118,7 +118,7 @@ def to_form(self):
118118
def _parse(form):
119119
"""
120120
Returns:
121-
str:
121+
str
122122
"""
123123
if sys.version_info > (3,):
124124
# on Python 3 form needs to be byte encoded

telegram/replykeyboardremove.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ class ReplyKeyboardRemove(ReplyMarkup):
3131
Args:
3232
selective (Optional[bool]): Use this parameter if you want to remove the keyboard for
3333
specific users only. Targets:
34-
1) users that are @mentioned in the text of the Message object;
35-
2) if the bot's message is a reply (has reply_to_message_id), sender of the
36-
original message.
34+
35+
- users that are @mentioned in the text of the Message object
36+
- if the bot's message is a reply (has reply_to_message_id), sender of the
37+
original message.
38+
3739
**kwargs: Arbitrary keyword arguments.
3840
3941
"""

0 commit comments

Comments
 (0)