Skip to content

Commit fe6959c

Browse files
authored
Merge pull request eternnoir#561 from uburuntu/InputMedia
fix: support python2 super()
2 parents 421118d + 7dd53b1 commit fe6959c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎telebot/types.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from telebot import util
1111

1212

13-
class JsonSerializable:
13+
class JsonSerializable(object):
1414
"""
1515
Subclasses of this class are guaranteed to be able to be converted to JSON format.
1616
All subclasses of this class must override to_json.
@@ -26,7 +26,7 @@ def to_json(self):
2626
raise NotImplementedError
2727

2828

29-
class Dictionaryable:
29+
class Dictionaryable(object):
3030
"""
3131
Subclasses of this class are guaranteed to be able to be converted to dictionary.
3232
All subclasses of this class must override to_dic.
@@ -42,7 +42,7 @@ def to_dic(self):
4242
raise NotImplementedError
4343

4444

45-
class JsonDeserializable:
45+
class JsonDeserializable(object):
4646
"""
4747
Subclasses of this class are guaranteed to be able to be created from a json-style dict or json formatted string.
4848
All subclasses of this class must override de_json.

0 commit comments

Comments
 (0)