mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
unsorted dunder all/slots (extra-edit)
This commit is contained in:
parent
d8aecf09ea
commit
c9b55c924a
@ -144,7 +144,7 @@ class CalibrePluginLoader:
|
||||
'fullname_in_plugin',
|
||||
'names',
|
||||
'plugin_name',
|
||||
'zip_file_path'
|
||||
'zip_file_path',
|
||||
)
|
||||
|
||||
def __init__(self, plugin_name, fullname_in_plugin, zip_file_path, names, filename, is_package, all_names):
|
||||
|
@ -164,7 +164,7 @@ def fixcase(x):
|
||||
|
||||
|
||||
class Option:
|
||||
__slots__ = ['choices', 'default', 'desc', 'label', 'name', 'type']
|
||||
__slots__ = ('choices', 'default', 'desc', 'label', 'name', 'type')
|
||||
|
||||
def __init__(self, name, type_, default, label, desc, choices=None):
|
||||
'''
|
||||
|
@ -386,7 +386,7 @@ class Box(QWidget):
|
||||
|
||||
class Property:
|
||||
|
||||
__slots__ = 'color', 'important', 'is_overriden', 'name', 'specificity', 'value'
|
||||
__slots__ = ('color', 'important', 'is_overriden', 'name', 'specificity', 'value')
|
||||
|
||||
def __init__(self, prop, specificity=()):
|
||||
self.name, self.value, self.important, self.color = prop
|
||||
|
@ -194,7 +194,7 @@ class SearchResult:
|
||||
'search_query',
|
||||
'spine_idx',
|
||||
'text',
|
||||
'toc_nodes'
|
||||
'toc_nodes',
|
||||
)
|
||||
|
||||
def __init__(self, search_query, before, text, after, q, name, spine_idx, index, offset, result_num):
|
||||
|
@ -231,7 +231,7 @@ class PyScorer:
|
||||
'level2',
|
||||
'level3',
|
||||
'max_score_per_char',
|
||||
'memory'
|
||||
'memory',
|
||||
)
|
||||
|
||||
def __init__(
|
||||
|
@ -36,7 +36,7 @@ __all__ = [
|
||||
'ThreadPool',
|
||||
'WorkRequest',
|
||||
'WorkerThread',
|
||||
'makeRequests'
|
||||
'makeRequests',
|
||||
]
|
||||
|
||||
__author__ = 'Christopher Arndt'
|
||||
|
Loading…
x
Reference in New Issue
Block a user