X Tutup
Skip to content

Commit e56c6df

Browse files
committed
Revert "Minor fixes python-telegram-bot#232"
This reverts commit 720c4d2.
1 parent 263310b commit e56c6df

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

telegram/inlinekeyboardbutton.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ def __init__(self,
5656

5757
@staticmethod
5858
def de_json(data):
59-
data = super(InlineKeyboardButton, InlineKeyboardButton).de_json(data)
60-
6159
if not data:
6260
return None
6361

telegram/inlinequery.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ def de_json(data):
6262
Returns:
6363
telegram.InlineQuery:
6464
"""
65-
data = super(InlineQuery, InlineQuery).de_json(data)
66-
6765
if not data:
6866
return None
6967

tests/test_inlinequery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_inlinequery_to_dict(self):
7070
inlinequery = telegram.InlineQuery.de_json(self.json_dict).to_dict()
7171

7272
self.assertTrue(self.is_dict(inlinequery))
73-
self.assertDictEqual(inlinequery, self.json_dict)
73+
# self.assertDictEqual(inlinequery, self.json_dict)
7474

7575

7676
if __name__ == '__main__':

0 commit comments

Comments
 (0)
X Tutup