Skip to content

Commit c52dc04

Browse files
surbhiPeterSurda
authored andcommitted
fix lint and import
1 parent 38f1d74 commit c52dc04

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

src/bitmessagekivy/baseclass/common.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pylint: disable=no-name-in-module, attribute-defined-outside-init, import-error, unused-argument
2-
# pylint: disable=no-init, too-few-public-methods
2+
# pylint: disable=no-init, too-few-public-methods, useless-object-inheritance
33

44
"""
55
All Common widgets of kivy are managed here.
@@ -8,26 +8,18 @@
88
import os
99
from datetime import datetime
1010

11+
from kivy.app import App
1112
from kivy.core.window import Window
1213
from kivy.metrics import dp
14+
from kivy.properties import ListProperty, NumericProperty, StringProperty
1315
from kivy.uix.image import Image
14-
from kivy.properties import (
15-
NumericProperty,
16-
StringProperty,
17-
ListProperty
18-
)
19-
from kivy.app import App
20-
21-
from kivymd.uix.list import (
22-
ILeftBody,
23-
IRightBodyTouch,
24-
)
25-
from kivymd.uix.label import MDLabel
2616
from kivymd.toast import kivytoast
17+
from kivymd.uix.button import MDFlatButton
2718
from kivymd.uix.card import MDCardSwipe
2819
from kivymd.uix.chip import MDChip
2920
from kivymd.uix.dialog import MDDialog
30-
from kivymd.uix.button import MDFlatButton
21+
from kivymd.uix.label import MDLabel
22+
from kivymd.uix.list import ILeftBody, IRightBodyTouch
3123

3224
from pybitmessage.bitmessagekivy.get_platform import platform
3325
from pybitmessage.bmconfigparser import config
@@ -46,7 +38,7 @@
4638
}
4739

4840

49-
class ChipProperties():
41+
class ChipProperties(object):
5042
"""ChipProperties class for kivy UI"""
5143
CENTER_X_ANDROID = 0.91
5244
CENTER_X_OTHER = 0.94
@@ -58,7 +50,7 @@ class ChipProperties():
5850
SIZE_HINT_OTHER = (0.08, None)
5951

6052

61-
class BadgeProperties():
53+
class BadgeProperties(object):
6254
"""BadgeProperties class for kivy UI"""
6355
SIZE_ANDROID = [120, 140]
6456
SIZE_OTHER = [64, 80]

0 commit comments

Comments
 (0)