[#2797][Lint] Enable no-init pylint warning
This commit is contained in:
parent
59d8fc9a14
commit
a04718ebe5
|
@ -68,7 +68,10 @@ disable=missing-docstring, invalid-name, wrong-import-position, wrong-import-ord
|
|||
R,
|
||||
unused-argument, fixme, protected-access, import-error, unused-variable,
|
||||
global-statement, attribute-defined-outside-init, arguments-differ,
|
||||
no-init, super-init-not-called, broad-except
|
||||
super-init-not-called,
|
||||
|
||||
# The following warnings should eventually be enabled:
|
||||
broad-except
|
||||
|
||||
[REPORTS]
|
||||
|
||||
|
|
|
@ -198,7 +198,7 @@ def _download_file(url, filename, callback=None, headers=None, force_filename=Fa
|
|||
except ImportError:
|
||||
ctx_factory = ssl.ClientContextFactory()
|
||||
else:
|
||||
class TLSSNIContextFactory(ssl.ClientContextFactory):
|
||||
class TLSSNIContextFactory(ssl.ClientContextFactory): # pylint: disable=no-init
|
||||
"""
|
||||
A custom context factory to add a server name for TLS connections.
|
||||
"""
|
||||
|
|
|
@ -73,6 +73,9 @@ SND_EVENT, SND_EVENT_DOC, SND_NAME, SND_PATH = range(4)
|
|||
|
||||
class GtkUiNotifications(CustomNotifications):
|
||||
|
||||
def __init__(self, plugin_name=None):
|
||||
CustomNotifications.__init__(self, plugin_name)
|
||||
|
||||
def enable(self):
|
||||
CustomNotifications.enable(self)
|
||||
self.register_custom_blink_notification(
|
||||
|
|
Loading…
Reference in New Issue