mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Add comment int linter_plugin
This commit is contained in:
parent
61e654b852
commit
7d74125936
1 changed files with 3 additions and 0 deletions
|
|
@ -11,6 +11,9 @@ def register(unused_linter):
|
|||
"""Register this module as PyLint plugin."""
|
||||
|
||||
def _transform(cls):
|
||||
# fix the "no-member" error on instances of
|
||||
# letsencrypt.acme.util.ImmutableMap subclasses (instance
|
||||
# attributes are initialized dynamically based on __slots__)
|
||||
if (('Message' in cls.basenames or 'ImmutableMap' in cls.basenames or
|
||||
'util.ImmutableMap' in cls.basenames) and (cls.slots() is not None)):
|
||||
for slot in cls.slots():
|
||||
|
|
|
|||
Loading…
Reference in a new issue